It seems I didn't need to write a dup2() wrapper - as we already use it a
authorAndrew Bartlett <abartlet@samba.org>
Sun, 28 Jul 2002 02:20:15 +0000 (02:20 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 28 Jul 2002 02:20:15 +0000 (02:20 +0000)
lot.  But as thats done, we might as well use it anyway.

Andrew Bartlett
(This used to be commit d78cce806d967d0442b153242ba2061f1b14b6b6)

source3/lib/smbrun.c

index 67f82ed0ad43cdf1c853e4a67583352d5fd20a93..592543bc43be89dc7fd8ab722a7145f00bd7c401 100644 (file)
@@ -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);