diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-10-20 06:29:52 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-10-20 06:29:52 +0000 |
commit | e82c34aab5f5e5e1bf7375d10ea9fa5ec578506d (patch) | |
tree | ddf50836f123f7460e15cdf7cc1934d2e69f9a59 | |
parent | b67ca9cf8c02717a20aee6650d1eb50112d93ecb (diff) | |
download | samba-e82c34aab5f5e5e1bf7375d10ea9fa5ec578506d.tar.gz samba-e82c34aab5f5e5e1bf7375d10ea9fa5ec578506d.tar.bz2 samba-e82c34aab5f5e5e1bf7375d10ea9fa5ec578506d.zip |
add non_root_mode() check
(This used to be commit 96f910bae510fb45e2f1181c1e3ad607a50a64d7)
-rw-r--r-- | source3/smbd/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 9e3f3c9f11..a871192ad5 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -334,7 +334,7 @@ connection_struct *make_connection(char *service,char *password, ZERO_STRUCT(user); /* This must ONLY BE CALLED AS ROOT. As it exits this function as root. */ - if ((euid = geteuid()) != 0) { + if (!non_root_mode() && (euid = geteuid()) != 0) { DEBUG(0,("make_connection: PANIC ERROR. Called as nonroot (%u)\n", (unsigned int)euid )); smb_panic("make_connection: PANIC ERROR. Called as nonroot\n"); } |