]> Dogcows Code - chaz/tar/commit
Provide a way to explicitly set mtime for extended header ustar blocks.
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 7 Oct 2009 18:08:29 +0000 (21:08 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 7 Oct 2009 18:08:29 +0000 (21:08 +0300)
commit63e092548a9b87c0be0f0b286c883e1f3d52294c
tree8d1a0a93bff09e144b79fba33917aa7f8ac29f63
parent7cb84c25ee51f443c69443e217efe194d12678ea
Provide a way to explicitly set mtime for extended header ustar blocks.

* src/tar.c (struct textual_date): ts is a copy of the structure,
not a pointer to it. Date is a copy as well, hence the `const' is
taken away.
(get_date_or_file): Return 0/1 depending on success/failure.
Copy timestamp to the `ts' member. Store a copy of the string
in `date'.
(report_textual_dates): Report only if verbose_option is set,
but always free the list.
(expand_pax_option): New function.
(parse_opt): Preprocess the argument to xheader_set_option with
expand_pax_option.
(decode_options): Call report_textual_dates unconditionally.
* src/xheader.c (exthdr_mtime_option, exthdr_mtime)
(globexthdr_mtime_option, globexthdr_mtime): New statics.
(xheader_set_keyword_equal): handle exthdr.mtime and globexthdr.mtime.
(xheader_write): Override `t' argument if a corresponding
exthdr.mtime or globexthdr.mtime option is set.
* NEWS: Update
* doc/tar.texi: Document the changes.
NEWS
doc/tar.texi
src/tar.c
src/xheader.c
This page took 0.022998 seconds and 4 git commands to generate.