git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9423ac9
)
It seems I didn't need to write a dup2() wrapper - as we already use it a
author
Andrew Bartlett
<abartlet@samba.org>
Sun, 28 Jul 2002 02:20:15 +0000
(
02:20
+0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source3/lib/smbrun.c
b/source3/lib/smbrun.c
index 67f82ed0ad43cdf1c853e4a67583352d5fd20a93..592543bc43be89dc7fd8ab722a7145f00bd7c401 100644
(file)
--- 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);