Explorar el Código

(start_header): Override mtime if requested

Sergey Poznyakoff hace 19 años
padre
commit
a71b154289
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/create.c

+ 1 - 1
src/create.c

@@ -730,7 +730,7 @@ start_header (struct tar_stat_info *st)
   }
 
   {
-    struct timespec mtime = st->mtime;
+    struct timespec mtime = set_mtime_option ? mtime_option : st->mtime;
     if (archive_format == POSIX_FORMAT)
       {
 	if (MAX_OCTAL_VAL (header->header.mtime) < mtime.tv_sec