diff options
author | Ivo De Decker <ivo.dedecker@ugent.be> | 2013-05-10 13:33:02 +0200 |
---|---|---|
committer | Ivo De Decker <ivo.dedecker@ugent.be> | 2013-05-10 13:33:02 +0200 |
commit | 31202ad025bcdeb2585d18dc3f4641b5cf9c0ec4 (patch) | |
tree | 32c20d66684ac97b86e55495146e9a676bfae85a /source3/lib/smbrun.c | |
parent | 2865eba17fddda6c49f1209ca92d539111e7ff93 (diff) | |
download | samba-31202ad025bcdeb2585d18dc3f4641b5cf9c0ec4.tar.gz |
Imported Upstream version 4.0.0+dfsg1upstream/4.0.0+dfsg1
Diffstat (limited to 'source3/lib/smbrun.c')
-rw-r--r-- | source3/lib/smbrun.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/smbrun.c b/source3/lib/smbrun.c index 75713d2aa2..0ecdc0d683 100644 --- a/source3/lib/smbrun.c +++ b/source3/lib/smbrun.c @@ -92,7 +92,7 @@ static int smbrun_internal(const char *cmd, int *outfd, bool sanitize) CatchChildLeaveStatus(); - if ((pid=sys_fork()) < 0) { + if ((pid=fork()) < 0) { DEBUG(0,("smbrun: fork failed with error %s\n", strerror(errno) )); CatchChild(); if (outfd) { @@ -132,7 +132,7 @@ static int smbrun_internal(const char *cmd, int *outfd, bool sanitize) /* Reset the seek pointer. */ if (outfd) { - sys_lseek(*outfd, 0, SEEK_SET); + lseek(*outfd, 0, SEEK_SET); } #if defined(WIFEXITED) && defined(WEXITSTATUS) @@ -255,7 +255,7 @@ int smbrunsecret(const char *cmd, const char *secret) CatchChildLeaveStatus(); - if ((pid=sys_fork()) < 0) { + if ((pid=fork()) < 0) { DEBUG(0, ("smbrunsecret: fork failed with error %s\n", strerror(errno))); CatchChild(); return errno; |