diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-07-28 02:20:15 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-07-28 02:20:15 +0000 |
commit | 74d235ff1a08f931a85f7715526344d0e08ccfd4 (patch) | |
tree | 854e2db8785a16b62877c08c64230b4cd50b0d35 | |
parent | 9423ac9b4f3731faf92c9a688a043f04742b4eb1 (diff) | |
download | samba-74d235ff1a08f931a85f7715526344d0e08ccfd4.tar.gz samba-74d235ff1a08f931a85f7715526344d0e08ccfd4.tar.bz2 samba-74d235ff1a08f931a85f7715526344d0e08ccfd4.zip |
It seems I didn't need to write a dup2() wrapper - as we already use it a
lot. But as thats done, we might as well use it anyway.
Andrew Bartlett
(This used to be commit d78cce806d967d0442b153242ba2061f1b14b6b6)
-rw-r--r-- | source3/lib/smbrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbrun.c b/source3/lib/smbrun.c index 67f82ed0ad..592543bc43 100644 --- a/source3/lib/smbrun.c +++ b/source3/lib/smbrun.c @@ -143,7 +143,7 @@ int smbrun(char *cmd, int *outfd) /* point our stdout at the file we want output to go into */ if (outfd) { close(1); - if (dup2(*outfd,1) != 1) { + if (sys_dup2(*outfd,1) != 1) { DEBUG(2,("Failed to create stdout file descriptor\n")); close(*outfd); exit(80); |