summaryrefslogtreecommitdiffstats
path: root/source/smbd/service.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-10-20 18:37:19 +0000
committerJeremy Allison <jra@samba.org>2001-10-20 18:37:19 +0000
commitf34fc713c8e23e2cc8bd89c776f45e26ffb02c47 (patch)
tree12dd35864c3a31c838e0ba934a712ae6e77db52b /source/smbd/service.c
parent8bac13358eca0c3125399309d7ad2d016e6bc410 (diff)
downloadsamba-f34fc713c8e23e2cc8bd89c776f45e26ffb02c47.tar.gz
samba-f34fc713c8e23e2cc8bd89c776f45e26ffb02c47.tar.xz
samba-f34fc713c8e23e2cc8bd89c776f45e26ffb02c47.zip
Fix for non_root_mode() (from HEAD).
Jeremy.
Diffstat (limited to 'source/smbd/service.c')
-rw-r--r--source/smbd/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c
index 18f7b70e37d..9b77935fb3f 100644
--- a/source/smbd/service.c
+++ b/source/smbd/service.c
@@ -232,7 +232,7 @@ connection_struct *make_connection(char *service,char *user,char *password, int
/* 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");
}