]> Dogcows Code - chaz/tar/commitdiff
(start_header): Override mtime if requested
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 21 Jun 2006 10:40:10 +0000 (10:40 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 21 Jun 2006 10:40:10 +0000 (10:40 +0000)
src/create.c

index 4f623ac1bb0b4e6ad77aaa4a0c3e369f20b88283..0d208d791c24586f50bc19c00fca7fe33d9271d5 100644 (file)
@@ -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
This page took 0.026849 seconds and 4 git commands to generate.