On 04/23/2010 11:33 AM, MELENNEC Ronan DGAC/CEDRe wrote:
> My patch only changes tar-1.23/src/extract.c :
> - a test on file type barring symlink timestamps
> from being restored is removed ;
> - a call to utimens() is replaced by a call to lutimens().

We might as well use gnulib's wrapper lutimens that correctly wraps
utimensat, and provides as much resolution as possible on as many
platforms as possible.  After all, that's what coreutils 8.4 is doing in
its implementation of touch -h.

> Limitations :
> - as of today I can only test on Linux Ubuntu 9.10
> (using a 2.6.31 kernel) ;
> - I have not thoroughly analysed the relevant configuration
> scripts.
> Therefore I cannot make any assessment of portability.

Using gnulib for the time-setting functions guarantees the portability,
insofar as gnulib is able to provide it.

-- 
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to