]> Dogcows Code - chaz/tar/blobdiff - src/buffer.c
Implement -E (ending-file) option.
[chaz/tar] / src / buffer.c
index 528faa5928564322eacaea7a46fcb894e10b9541..72c299ed6bd21e1535cf916b3aa3c69c4a2b3324 100644 (file)
@@ -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
This page took 0.023178 seconds and 4 git commands to generate.