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:
2ace9be
)
test_qemu: pclose may return any != 0 on error.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 23 Aug 2011 17:53:00 +0000
(18:53 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 23 Aug 2011 17:53:00 +0000
(18:53 +0100)
In particular pclose returns a status > 0 if the command fails.
src/launch.c
patch
|
blob
|
history
diff --git
a/src/launch.c
b/src/launch.c
index
cb0f637
..
11d1acf
100644
(file)
--- a/
src/launch.c
+++ b/
src/launch.c
@@
-1110,7
+1110,7
@@
test_qemu_cmd (guestfs_h *g, const char *cmd, char **ret)
return -1;
}
- if (pclose (fp)
== -1
)
+ if (pclose (fp)
!= 0
)
return -1;
return 0;