diff options
author | Trever L. Adams <trever.adams@gmail.com> | 2016-10-12 09:55:15 -0600 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-10-13 04:26:26 +0200 |
commit | 7accec7f78f40849b50ad291fb56b04f3fd39dc2 (patch) | |
tree | 386652bfc0ab139d7e6e624bac9146b5827faf56 /source3/services | |
parent | 2a245512b8146e1e726186dd460a85eb5c665969 (diff) | |
download | samba-7accec7f78f40849b50ad291fb56b04f3fd39dc2.tar.gz |
Update smbrun to allow for settings environment variables.
Signed-off-by: Trever L. Adams <trever.adams@gmail.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Oct 13 04:26:26 CEST 2016 on sn-devel-144
Diffstat (limited to 'source3/services')
-rw-r--r-- | source3/services/svc_rcinit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/services/svc_rcinit.c b/source3/services/svc_rcinit.c index a47931d63b6..95442ce2efb 100644 --- a/source3/services/svc_rcinit.c +++ b/source3/services/svc_rcinit.c @@ -36,7 +36,7 @@ static WERROR rcinit_stop( const char *service, struct SERVICE_STATUS *status ) /* we've already performed the access check when the service was opened */ become_root(); - ret = smbrun( command , &fd ); + ret = smbrun(command, &fd, NULL); unbecome_root(); DEBUGADD(5, ("rcinit_start: [%s] returned [%d]\n", command, ret)); @@ -70,7 +70,7 @@ static WERROR rcinit_start( const char *service ) /* we've already performed the access check when the service was opened */ become_root(); - ret = smbrun( command , &fd ); + ret = smbrun(command, &fd, NULL); unbecome_root(); DEBUGADD(5, ("rcinit_start: [%s] returned [%d]\n", command, ret)); @@ -99,7 +99,7 @@ static WERROR rcinit_status( const char *service, struct SERVICE_STATUS *status is STOPPED */ become_root(); - ret = smbrun( command , &fd ); + ret = smbrun(command, &fd, NULL); unbecome_root(); DEBUGADD(5, ("rcinit_start: [%s] returned [%d]\n", command, ret)); |