]> Dogcows Code - chaz/tar/commit
Use file's mtime as mtime for its extended header.
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 7 Oct 2009 15:40:07 +0000 (18:40 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 7 Oct 2009 15:40:07 +0000 (18:40 +0300)
commit7cb84c25ee51f443c69443e217efe194d12678ea
treec96de54f81ef15e0d8db8d0e0c7e180b9e5b306e
parent4dfcd6c054a5e9e1a371c822a3be90564dd9b690
Use file's mtime as mtime for its extended header.

This makes two pax archives binary equivalent if they
have the same contents and care is taken to make extended
headers otherwise reproducible, e.g. by using:

  --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0

Proposed by Michael D. Adams <mdmkolbe@gmail.com>.

* src/common.h (start_private_header): Take time_t as 3rd param.
(xheader_write): Likewise.
* src/create.c (start_private_header): Take time_t as 3rd param.
All callers updated.
(write_extended): Use file's mtime as mtime for its extended header,
Use current time stamp as mtime for global headers.
(xheader_write): Take time_t as 3rd param.
src/common.h
src/create.c
src/xheader.c
This page took 0.022431 seconds and 4 git commands to generate.