summaryrefslogtreecommitdiffstats
path: root/source/smbd/sec_ctx.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-06-26 03:45:45 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-06-26 03:45:45 +0000
commitb33000cdc0cafd4888c3f07c56050626743abd14 (patch)
tree9b05b49b75d848927b75f2f97732d82907a59a68 /source/smbd/sec_ctx.c
parente88da9dcc79801028127bcbe328af001b58e653a (diff)
downloadsamba-b33000cdc0cafd4888c3f07c56050626743abd14.tar.gz
samba-b33000cdc0cafd4888c3f07c56050626743abd14.tar.xz
samba-b33000cdc0cafd4888c3f07c56050626743abd14.zip
Remove warning about trapdoor systems for non-root mode.
Andrew Bartlett
Diffstat (limited to 'source/smbd/sec_ctx.c')
-rw-r--r--source/smbd/sec_ctx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/smbd/sec_ctx.c b/source/smbd/sec_ctx.c
index 6f98e9df6b0..9ca63a0f957 100644
--- a/source/smbd/sec_ctx.c
+++ b/source/smbd/sec_ctx.c
@@ -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);