bug-coreutils
[Top][All Lists]
Advanced

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

Re: touch -h


From: Eric Blake
Subject: Re: touch -h
Date: Sat, 17 Oct 2009 14:59:55 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 10/17/2009 2:53 PM:
> Besides, it is consistent with many other tools that use -h to mean
> operation on symlinks proper (even though POSIX 2008 forgot to add 'touch
> -h'), including these from POSIX: chown, chgrp, file
> 
> [I still have 'chown -h' on my todo list...]

I meant 'chmod -h', since we already have 'chown -h'.  It won't work on
Linux, where fchmodat(,AT_SYMLINK_NOFOLLOW) fails as permitted by POSIX,
but will work on BSD and match their implementation:
http://www.ipnom.com/FreeBSD-Man-Pages/chmod.1.html

- -
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkraMEsACgkQ84KuGfSFAYCCGACbB2H+dpaMu8W0e+0hhvunueeS
rZ8AoMZmo0qolzV8bHwP2L+E9pyXgRpz
=65Vz
-----END PGP SIGNATURE-----




reply via email to

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