summaryrefslogtreecommitdiff
path: root/source3/lib
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
commitc33b0a6074d62ba028b5cd501e00394ad3acd9c5 (patch)
tree0ca3348bedf339b036eb179db0400f3d677e8479 /source3/lib
parent1684d534c8e82579ba80e3e720803fc574b2fd3b (diff)
downloadsamba-c33b0a6074d62ba028b5cd501e00394ad3acd9c5.tar.gz
samba-c33b0a6074d62ba028b5cd501e00394ad3acd9c5.tar.bz2
samba-c33b0a6074d62ba028b5cd501e00394ad3acd9c5.zip
Fix for VMS platforms from "John E. Malmberg" <wb8tyw@qsl.net>
Jeremy. (This used to be commit eb281324fa409296bb3f29c9b7c59b2337fadc0d)
Diffstat (limited to 'source3/lib')
-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 */