]> Dogcows Code - chaz/tar/commitdiff
(start_header): Pass mtime as a call-specific data to xheader_store.
authorSergey Poznyakoff <gray@gnu.org.ua>
Mon, 13 Nov 2006 10:39:51 +0000 (10:39 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Mon, 13 Nov 2006 10:39:51 +0000 (10:39 +0000)
src/create.c

index b1b2fd7deca03d9849aea59681f625ce2d9d2f6c..6eb6ad259e4b2d2bce8797e726f509994ab6278b 100644 (file)
@@ -742,7 +742,7 @@ start_header (struct tar_stat_info *st)
       {
        if (MAX_OCTAL_VAL (header->header.mtime) < mtime.tv_sec
            || mtime.tv_nsec != 0)
       {
        if (MAX_OCTAL_VAL (header->header.mtime) < mtime.tv_sec
            || mtime.tv_nsec != 0)
-         xheader_store ("mtime", st, NULL);
+         xheader_store ("mtime", st, &mtime);
        if (MAX_OCTAL_VAL (header->header.mtime) < mtime.tv_sec)
          mtime.tv_sec = 0;
       }
        if (MAX_OCTAL_VAL (header->header.mtime) < mtime.tv_sec)
          mtime.tv_sec = 0;
       }
This page took 0.022913 seconds and 4 git commands to generate.