From e82c34aab5f5e5e1bf7375d10ea9fa5ec578506d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 20 Oct 2001 06:29:52 +0000 Subject: add non_root_mode() check (This used to be commit 96f910bae510fb45e2f1181c1e3ad607a50a64d7) --- source3/smbd/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit