summaryrefslogtreecommitdiffstats
path: root/daemon/tar.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@centos5x32.home.annexia.org>2009-07-03 00:22:14 +0100
committerRichard Jones <rjones@centos5x32.home.annexia.org>2009-07-03 00:22:14 +0100
commit6fb57e430c8daa06d8d938ac02a104c8aadbbda5 (patch)
tree38586363a6a7d68e5559347d1cc7671593c81aed /daemon/tar.c
parentb7e094fa14b306fe776b9b2695cf82fa32d4923f (diff)
parentee4c49fad5a3e36c6e909ab90bcb7d719c9395b3 (diff)
downloadlibguestfs-6fb57e430c8daa06d8d938ac02a104c8aadbbda5.tar.gz
libguestfs-6fb57e430c8daa06d8d938ac02a104c8aadbbda5.tar.xz
libguestfs-6fb57e430c8daa06d8d938ac02a104c8aadbbda5.zip
Merge branch 'master' of git+ssh://192.168.122.1/home/rjones/d/libguestfs
Diffstat (limited to 'daemon/tar.c')
-rw-r--r--daemon/tar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/tar.c b/daemon/tar.c
index 4d9feaa0..0320604c 100644
--- a/daemon/tar.c
+++ b/daemon/tar.c
@@ -88,7 +88,7 @@ do_tar_in (char *dir)
return -1;
}
- if (pclose (fp) == -1) {
+ if (pclose (fp) != 0) {
err = errno;
cancel_receive ();
errno = err;
@@ -150,7 +150,7 @@ do_tar_out (char *dir)
return -1;
}
- if (pclose (fp) == -1) {
+ if (pclose (fp) != 0) {
perror (dir);
send_file_end (1); /* Cancel. */
return -1;
@@ -214,7 +214,7 @@ do_tgz_in (char *dir)
return -1;
}
- if (pclose (fp) == -1) {
+ if (pclose (fp) != 0) {
err = errno;
cancel_receive ();
errno = err;
@@ -276,7 +276,7 @@ do_tgz_out (char *dir)
return -1;
}
- if (pclose (fp) == -1) {
+ if (pclose (fp) != 0) {
perror (dir);
send_file_end (1); /* Cancel. */
return -1;