[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: touch command
From: |
Eric Blake |
Subject: |
Re: touch command |
Date: |
Tue, 28 Aug 2007 06:09:01 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Pádraig Brady on 8/28/2007 2:37 AM:
>> 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?
Not in the general case (think 'touch -m -d yesterday file', which changes
only the modification time, and to a time other than now).
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG1BBc84KuGfSFAYARAlntAJ9EmSYBdagKw46JLbCH5e4LXc1HZQCeJ3Nj
S0A7Y0DYA1PeTZJVTBr0DXw=
=9Deh
-----END PGP SIGNATURE-----