mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Use ferror to check for error conditions in pipe.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user