git.samba.org
/
mdw
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
243157a
)
s3: in sys_popen(), improve call to pipe and report error to debug
author
Michael Adam
<obnox@samba.org>
Tue, 4 Sep 2012 13:17:37 +0000
(15:17 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 4 Sep 2012 18:39:20 +0000
(20:39 +0200)
source3/lib/system.c
patch
|
blob
|
history
diff --git
a/source3/lib/system.c
b/source3/lib/system.c
index ce55e83d583009f20e6f98d136dbfe75a68c10d6..30f2ac6d008be79fee079015c55549e6773b1bce 100644
(file)
--- a/
source3/lib/system.c
+++ b/
source3/lib/system.c
@@
-1166,8
+1166,12
@@
int sys_popen(const char *command)
return -1;
}
- if (pipe(pipe_fds) < 0)
+ ret = pipe(pipe_fds);
+ if (ret < 0) {
+ DEBUG(0, ("sys_popen: error opening pipe: %s\n",
+ strerror(errno)));
return -1;
+ }
parent_end = pipe_fds[0];
child_end = pipe_fds[1];