Explorar o código

(start_header): Pass mtime as a call-specific data to xheader_store.

Sergey Poznyakoff %!s(int64=18) %!d(string=hai) anos
pai
achega
304d8b9f0c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/create.c

+ 1 - 1
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;
       }