mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
Fix for VMS platforms from "John E. Malmberg" <wb8tyw@qsl.net>
Jeremy.
(This used to be commit eb281324fa
)
This commit is contained in:
@ -92,6 +92,7 @@ int smbrun(char *cmd,char *outfile,BOOL shared)
|
|||||||
set_inherited_process_capability(KERNEL_OPLOCK_CAPABILITY, False);
|
set_inherited_process_capability(KERNEL_OPLOCK_CAPABILITY, False);
|
||||||
|
|
||||||
#ifndef HAVE_EXECL
|
#ifndef HAVE_EXECL
|
||||||
|
{
|
||||||
int ret;
|
int ret;
|
||||||
pstring syscmd;
|
pstring syscmd;
|
||||||
char *path = lp_smbrun();
|
char *path = lp_smbrun();
|
||||||
@ -113,6 +114,7 @@ int smbrun(char *cmd,char *outfile,BOOL shared)
|
|||||||
ret = system(syscmd);
|
ret = system(syscmd);
|
||||||
DEBUG(5,("gave %d\n",ret));
|
DEBUG(5,("gave %d\n",ret));
|
||||||
return(ret);
|
return(ret);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
/* in this newer method we will exec /bin/sh with the correct
|
/* in this newer method we will exec /bin/sh with the correct
|
||||||
arguments, after first setting stdout to point at the file */
|
arguments, after first setting stdout to point at the file */
|
||||||
|
Reference in New Issue
Block a user