]> Dogcows Code - chaz/tar/blobdiff - src/create.c
Honor the pax-option overrides when creating archive.
[chaz/tar] / src / create.c
index e2f4ede6b8d12c1200c931f9f425c9537a72906b..0d1a5ffe99315f52410f1ca9ab9172fa3286d6d6 100644 (file)
@@ -706,7 +706,7 @@ write_extended (bool global, struct tar_stat_info *st, union block *old_header)
     {
       type = XHDTYPE;
       p = xheader_xhdr_name (st);
-      t = st->stat.st_mtime;
+      t = set_mtime_option ? mtime_option.tv_sec : st->stat.st_mtime;
     }
   xheader_write (type, p, t, &st->xhdr);
   free (p);
This page took 0.017788 seconds and 4 git commands to generate.