[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: touch command
From: |
Andreas Schwab |
Subject: |
Re: touch command |
Date: |
Tue, 28 Aug 2007 11:32:47 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) |
Eric Blake <address@hidden> writes:
> According to Bob Proulx on 8/27/2007 6:55 PM:
>> 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.
>
> But note that the next revision of POSIX will be adding futimensat, which
> WILL support setting the (cosmetic) timestamp of symlinks.
It's already supported by Linux (since 2.6.22) and glibc (since 2.6).
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."