Niels Hald Pedersen wrote:

> When updating the contents of a directory by tarring files into it, it seems
> that the modification time for that directory becomes identical to that of
> the latest modified file in it, and not the time of the tarring. Is this
> correct, reliable and documented behavior ?

When you extract a tar archive, tar sets the datestamps on everything
it extracts. If the archive contains `.' (i.e. it was created with
e.g. `tar cf foo.tar .'), then `tar x /path/to/foo.tar' will set the
datestamp on `.'. If the archive doesn't contain `.', then tar
shouldn't set the datestamp on it.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to