summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-28 02:20:15 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-28 02:20:15 +0000
commit74d235ff1a08f931a85f7715526344d0e08ccfd4 (patch)
tree854e2db8785a16b62877c08c64230b4cd50b0d35 /source3/lib
parent9423ac9b4f3731faf92c9a688a043f04742b4eb1 (diff)
downloadsamba-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)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/smbrun.c2
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);