bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: touch command


From: Pádraig Brady
Subject: Re: touch command
Date: Tue, 28 Aug 2007 09:37:44 +0100
User-agent: Thunderbird 1.5.0.8 (X11/20061116)

Bob Proulx wrote:
> address@hidden wrote:
>>  I am not really sure if it is a bug, but the line command
>>  "touch" seems incapable of changing the timestamp of a
>>  link (on a related issue, "tar" does not usually recover
>>  the timestamp of links).
> 
> There is no lutimes(2) call and therefore way way to set the times on
> a symlink.  This is why touch does not have a -h option.  Since
> lchmod(2) is available the chmod command has a -h option and uses it
> to change the owner of the symlink.

Could this be simulated by removing and recreating the link?

Pádraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]