touch: add -h to change symlink timestamps, where supported
authorEric Blake <ebb9@byu.net>
Sat, 17 Oct 2009 13:55:05 +0000 (07:55 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 17 Oct 2009 20:36:28 +0000 (14:36 -0600)
commit9e13b6a0b41532b63778aa67df40710df41174eb
treeb57f5cfb5452b54d42e3b81d25aa1bde32966bf2
parent527fb951def33fd76302e06f30e7221abd516ab6
touch: add -h to change symlink timestamps, where supported

* src/touch.c (no_dereference): New flag variable.
(longopts): Add -h/--no-dereference.
(touch): Add symlink handling.
(usage): Document new option.
(main): Accept new option.
* NEWS: Document it.
* doc/coreutils.texi (touch invocation): Likewise.  Also mention
birthtime.
* tests/touch/no-dereference: New test.
* tests/Makefile.am (TESTS): Run it.
NEWS
doc/coreutils.texi
src/touch.c
tests/Makefile.am
tests/touch/no-dereference [new file with mode: 0755]