mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
test_qemu: pclose may return any != 0 on error.
In particular pclose returns a status > 0 if the command fails.
(cherry picked from commit a24652c7b2)
This commit is contained in:
@@ -1083,7 +1083,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;
|
||||
|
||||
Reference in New Issue
Block a user