From: Sergey Poznyakoff Date: Wed, 21 Jun 2006 10:40:10 +0000 (+0000) Subject: (start_header): Override mtime if requested X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a71b154289fc9c35b5db425cced135743eb04010;p=chaz%2Ftar (start_header): Override mtime if requested --- diff --git a/src/create.c b/src/create.c index 4f623ac..0d208d7 100644 --- a/src/create.c +++ b/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