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:
38f9222
)
Use ferror to check for error conditions in pipe.
author
Richard Jones
<rjones@redhat.com>
Sun, 26 Apr 2009 08:51:48 +0000
(09:51 +0100)
committer
Richard Jones
<rjones@redhat.com>
Sun, 26 Apr 2009 08:51:48 +0000
(09:51 +0100)
daemon/tar.c
patch
|
blob
|
history
diff --git
a/daemon/tar.c
b/daemon/tar.c
index
ecf919d
..
a33ec3a
100644
(file)
--- 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);