From 9252df53d95d6ebe43314ffd87a9dda940b1ae10 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 12 Feb 2010 23:18:53 -0800 Subject: Use sec_initial_uid() in the places where being root doesn't matter, and 0 in the places where it does. Jeremy --- source3/smbd/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/service.c b/source3/smbd/service.c index b3e833ea1d..f908819d33 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -1083,7 +1083,7 @@ connection_struct *make_connection_snum(struct smbd_server_connection *sconn, err_root_exit: TALLOC_FREE(smb_fname_cpath); /* We must exit this function as root. */ - if (geteuid() != sec_initial_uid()) { + if (geteuid() != 0) { change_to_root_user(); } if (on_err_call_dis_hook) { -- cgit