git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc6dd9d
)
daemon: Use parens around code section for safety.
author
Richard Jones
<rjones@redhat.com>
Fri, 7 May 2010 21:50:22 +0000
(22:50 +0100)
committer
Richard Jones
<rjones@redhat.com>
Fri, 7 May 2010 21:51:20 +0000
(22:51 +0100)
daemon/guestfsd.c
patch
|
blob
|
history
diff --git
a/daemon/guestfsd.c
b/daemon/guestfsd.c
index
cd51f44
..
ef28d9b
100644
(file)
--- a/
daemon/guestfsd.c
+++ b/
daemon/guestfsd.c
@@
-781,9
+781,10
@@
commandrvf (char **stdoutput, char **stderror, int flags,
dup2 (stdin_fd[0], 0);
close (stdin_fd[0]);
close (stdin_fd[1]);
- } else
+ } else
{
/* Set stdin to /dev/null (ignore failure) */
open ("/dev/null", O_RDONLY);
+ }
close (so_fd[0]);
close (se_fd[0]);
if (!(flags & COMMAND_FLAG_FOLD_STDOUT_ON_STDERR))