From: junio Date: Thu, 4 Dec 1997 07:07:11 +0000 (+0000) Subject: Implement -E (ending-file) option. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=4559fdbfb1901845087b54a31fe7ba53fa9d661a;p=chaz%2Ftar Implement -E (ending-file) option. --- diff --git a/src/buffer.c b/src/buffer.c index 528faa5..72c299e 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1375,7 +1375,8 @@ close_archive (void) might become clever enough to just stop working, once there is no more work to do, we might have to revise this area in such time. */ - if (access_mode == ACCESS_READ && S_ISFIFO (archive_stat.st_mode)) + if (access_mode == ACCESS_READ && S_ISFIFO (archive_stat.st_mode) && + !ending_file_option) while (rmtread (archive, record_start->buffer, record_size) > 0) continue; #endif