浏览代码

Implement -E (ending-file) option.

junio 27 年之前
父节点
当前提交
4559fdbfb1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/buffer.c

+ 2 - 1
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