summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/smbrun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/smbrun.c b/source3/lib/smbrun.c
index 81dfc10dfb..89c924260f 100644
--- a/source3/lib/smbrun.c
+++ b/source3/lib/smbrun.c
@@ -92,6 +92,7 @@ int smbrun(char *cmd,char *outfile,BOOL shared)
set_inherited_process_capability(KERNEL_OPLOCK_CAPABILITY, False);
#ifndef HAVE_EXECL
+ {
int ret;
pstring syscmd;
char *path = lp_smbrun();
@@ -113,6 +114,7 @@ int smbrun(char *cmd,char *outfile,BOOL shared)
ret = system(syscmd);
DEBUG(5,("gave %d\n",ret));
return(ret);
+ }
#else
/* in this newer method we will exec /bin/sh with the correct
arguments, after first setting stdout to point at the file */