summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-16 11:15:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:32 -0500
commit494a6e7658094edaa984272fc16efb24d0fd7101 (patch)
treec36deb960b07ef32755824ee288ac98650bbba53
parente9a2b265e7858cb68953f65a785685a3af70e912 (diff)
downloadsamba-494a6e7658094edaa984272fc16efb24d0fd7101.tar.gz
samba-494a6e7658094edaa984272fc16efb24d0fd7101.tar.bz2
samba-494a6e7658094edaa984272fc16efb24d0fd7101.zip
r20212: Attempt to fix the Solaris build
(This used to be commit 902d81becbd5eac7251e88457be7efc5e951614f)
-rw-r--r--source3/passdb/lookup_sid.c6
1 files changed, 4 insertions, 2 deletions
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",