Remove warning about trapdoor systems for non-root mode.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 26 Jun 2001 03:45:45 +0000 (03:45 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 26 Jun 2001 03:45:45 +0000 (03:45 +0000)
Andrew Bartlett
(This used to be commit b33000cdc0cafd4888c3f07c56050626743abd14)

source3/smbd/sec_ctx.c

index 6f98e9df6b062bd703154e2bfd608dd500548e51..9ca63a0f957842a4726e03cc81b1e597f6797523 100644 (file)
@@ -109,6 +109,10 @@ static BOOL become_id(uid_t uid, gid_t gid)
 
 static void gain_root(void)
 {
+       if (non_root_mode()) {
+               return;
+       }
+
        if (geteuid() != 0) {
                set_effective_uid(0);