r20212: Attempt to fix the Solaris build
authorVolker Lendecke <vlendec@samba.org>
Sat, 16 Dec 2006 11:15:03 +0000 (11:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:16:32 +0000 (12:16 -0500)
(This used to be commit 902d81becbd5eac7251e88457be7efc5e951614f)

source3/passdb/lookup_sid.c

index 1fc96be70dda8492ee3e8f03f33971b0168e531f..c1dca6e43336600e133ca2f20f69b2d3c2075d7e 100644 (file)
@@ -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",