git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f447ad
)
Remove warning about trapdoor systems for non-root mode.
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 26 Jun 2001 03:45:45 +0000
(
03:45
+0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source3/smbd/sec_ctx.c
b/source3/smbd/sec_ctx.c
index 6f98e9df6b062bd703154e2bfd608dd500548e51..9ca63a0f957842a4726e03cc81b1e597f6797523 100644
(file)
--- 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);