diff options
Diffstat (limited to 'daemon/tar.c')
-rw-r--r-- | daemon/tar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/tar.c b/daemon/tar.c index ecf919db..a33ec3a0 100644 --- a/daemon/tar.c +++ b/daemon/tar.c @@ -139,7 +139,7 @@ do_tar_out (const char *dir) } } - if (r == -1) { + if (ferror (fp)) { perror (dir); send_file_end (1); /* Cancel. */ pclose (fp); @@ -261,7 +261,7 @@ do_tgz_out (const char *dir) } } - if (r == -1) { + if (ferror (fp)) { perror (dir); send_file_end (1); /* Cancel. */ pclose (fp); |