瀏覽代碼

(start_header): Check for GNU_FORMAT if incremental_option is set.

Sergey Poznyakoff 21 年之前
父節點
當前提交
e5882c8220
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/create.c

+ 1 - 1
src/create.c

@@ -668,7 +668,7 @@ start_header (struct tar_stat_info *st)
       xheader_store ("ctime", st, NULL);
     }
   else if (incremental_option)
-    if (archive_format == OLDGNU_FORMAT)
+    if (archive_format == OLDGNU_FORMAT || archive_format == GNU_FORMAT)
       {
 	TIME_TO_CHARS (st->stat.st_atime, header->oldgnu_header.atime);
 	TIME_TO_CHARS (st->stat.st_ctime, header->oldgnu_header.ctime);