diff options
Diffstat (limited to 'source3/smbd/service.c')
-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 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) { |