diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-06-26 03:45:45 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-06-26 03:45:45 +0000 |
commit | 90498a10c79edabf629c98403363b8e0b934e047 (patch) | |
tree | 3d5490bfff0b2a7725381eb2d136c7f6fab525c4 | |
parent | 9f447adbec3b4fa97be70add22e57a17fb8a53b2 (diff) | |
download | samba-90498a10c79edabf629c98403363b8e0b934e047.tar.gz samba-90498a10c79edabf629c98403363b8e0b934e047.tar.bz2 samba-90498a10c79edabf629c98403363b8e0b934e047.zip |
Remove warning about trapdoor systems for non-root mode.
Andrew Bartlett
(This used to be commit b33000cdc0cafd4888c3f07c56050626743abd14)
-rw-r--r-- | source3/smbd/sec_ctx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c index 6f98e9df6b..9ca63a0f95 100644 --- a/source3/smbd/sec_ctx.c +++ b/source3/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); |