From: Sergey Poznyakoff Date: Mon, 13 Nov 2006 10:39:51 +0000 (+0000) Subject: (start_header): Pass mtime as a call-specific data to xheader_store. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=304d8b9f0cac1e25be00d14c1b643a11879a6f85;p=chaz%2Ftar (start_header): Pass mtime as a call-specific data to xheader_store. --- diff --git a/src/create.c b/src/create.c index b1b2fd7..6eb6ad2 100644 --- a/src/create.c +++ b/src/create.c @@ -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) - xheader_store ("mtime", st, NULL); + xheader_store ("mtime", st, &mtime); if (MAX_OCTAL_VAL (header->header.mtime) < mtime.tv_sec) mtime.tv_sec = 0; }