Fix for VMS platforms from "John E. Malmberg" <wb8tyw@qsl.net>
authorJeremy Allison <jra@samba.org>
Mon, 8 May 2000 18:24:26 +0000 (18:24 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 8 May 2000 18:24:26 +0000 (18:24 +0000)
Jeremy.
(This used to be commit eb281324fa409296bb3f29c9b7c59b2337fadc0d)

source3/lib/smbrun.c

index 81dfc10dfb11cf27431dc399b940be88bc60a804..89c924260fdceefe495d79e90826ba7f5cf4b46d 100644 (file)
@@ -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 */