From: Jeremy Allison Date: Mon, 8 May 2000 18:24:26 +0000 (+0000) Subject: Fix for VMS platforms from "John E. Malmberg" X-Git-Tag: samba-4.0.0alpha6~801^2~19909 X-Git-Url: http://git.samba.org/samba.git/?p=ab%2Fsamba.git%2F.git;a=commitdiff_plain;h=c33b0a6074d62ba028b5cd501e00394ad3acd9c5 Fix for VMS platforms from "John E. Malmberg" Jeremy. (This used to be commit eb281324fa409296bb3f29c9b7c59b2337fadc0d) --- diff --git a/source3/lib/smbrun.c b/source3/lib/smbrun.c index 81dfc10dfb1..89c924260fd 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 */