pclose: Fix other places where we only tested pclose == -1.
[libguestfs.git] / src / dbdump.c
index caf6376..45c67c6 100644 (file)
@@ -129,7 +129,7 @@ guestfs___read_db_dump (guestfs_h *g,
   }
 
   /* Catch errors from the db_dump command. */
-  if (pclose (pp) == -1) {
+  if (pclose (pp) != 0) {
     perrorf (g, "pclose: %s", cmd);
     goto out;
   }