ln: add -L/-P options
authorEric Blake <ebb9@byu.net>
Thu, 24 Sep 2009 17:57:11 +0000 (11:57 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 25 Sep 2009 13:03:03 +0000 (07:03 -0600)
commitefcee783e4d576898130ccbf1cb2d7d6bf1b8420
tree401900376fd200b55ebede212a2b777b1d3fa0d4
parentfb59d72f0a48ef6bc45d795ab96131368157c59f
ln: add -L/-P options

* src/ln.c (STAT_LIKE_LINK): Delete.
(logical): New flag.
(long_options): Add -L, -P.
(usage): Mention them.
(main): Choose between them.
(do_link): Perform correct action.
* tests/ln/misc: Move hard-to-sym portion of test...
* tests/ln/hard-to-sym: ...into new test, and add more.
* tests/Makefile.am (TESTS): Run new test.
* NEWS: Document this.
* doc/coreutils.texi (link invocation, ln invocation): Likewise.
* bootstrap.conf (gnulib_modules): Add linkat.
NEWS
bootstrap.conf
doc/coreutils.texi
src/ln.c
tests/Makefile.am
tests/ln/hard-to-sym [new file with mode: 0755]
tests/ln/misc