summaryrefslogtreecommitdiffstats
path: root/source/lib/smbrun.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-05-08 18:24:26 +0000
committerJeremy Allison <jra@samba.org>2000-05-08 18:24:26 +0000
commiteb281324fa409296bb3f29c9b7c59b2337fadc0d (patch)
tree1b26db0929d10b400247e6d79c33296100ea894e /source/lib/smbrun.c
parentac40971f30e00a93fc5e138bfd1afa05cd8dea4b (diff)
downloadsamba-eb281324fa409296bb3f29c9b7c59b2337fadc0d.tar.gz
samba-eb281324fa409296bb3f29c9b7c59b2337fadc0d.tar.xz
samba-eb281324fa409296bb3f29c9b7c59b2337fadc0d.zip
Fix for VMS platforms from "John E. Malmberg" <wb8tyw@qsl.net>
Jeremy.
Diffstat (limited to 'source/lib/smbrun.c')
-rw-r--r--source/lib/smbrun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/lib/smbrun.c b/source/lib/smbrun.c
index 81dfc10dfb1..89c924260fd 100644
--- a/source/lib/smbrun.c
+++ b/source/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 */