From 494a6e7658094edaa984272fc16efb24d0fd7101 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 16 Dec 2006 11:15:03 +0000 Subject: r20212: Attempt to fix the Solaris build (This used to be commit 902d81becbd5eac7251e88457be7efc5e951614f) --- source3/passdb/lookup_sid.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/passdb') diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index 1fc96be70d..c1dca6e433 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -1306,7 +1306,8 @@ void uid_to_sid(DOM_SID *psid, uid_t uid) if (!winbind_uid_to_sid(psid, uid)) { if (!winbind_ping()) { DEBUG(2, ("WARNING: Winbindd not running, mapping ids with legacy code\n")); - return legacy_uid_to_sid(psid, uid); + legacy_uid_to_sid(psid, uid); + return; } DEBUG(5, ("uid_to_sid: winbind failed to find a sid for uid %u\n", @@ -1335,7 +1336,8 @@ void gid_to_sid(DOM_SID *psid, gid_t gid) if (!winbind_gid_to_sid(psid, gid)) { if (!winbind_ping()) { DEBUG(2, ("WARNING: Winbindd not running, mapping ids with legacy code\n")); - return legacy_gid_to_sid(psid, gid); + legacy_gid_to_sid(psid, gid); + return; } DEBUG(5, ("gid_to_sid: winbind failed to find a sid for gid %u\n", -- cgit