ls: with -LR, exit with status 2 upon detecting a cycle
authorJim Meyering <meyering@redhat.com>
Mon, 28 Sep 2009 16:29:02 +0000 (18:29 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 29 Sep 2009 05:28:39 +0000 (07:28 +0200)
commit242689c7f93de72693979f877dd31b3ef7178eea
tree29bc802c220b4d78ff9a1c3d659bc77aa898da9c
parent30c65cd49c98e56b65beef8812a4a25df4b1178a
ls: with -LR, exit with status 2 upon detecting a cycle

* src/ls.c (print_dir): Diagnosing the cycle is not enough.
Also set exit status to 2.  This is what Solaris' /bin/ls does, too.
* tests/ls/infloop: Rework test: match both expected stdout and stderr.
Require an exit status of 2 in this case.
* doc/coreutils.texi (ls invocation): Mention that a loop provokes
in an exit status of 2.
* NEWS (Bug fixes): Mention it.
Reported by Yang Ren in http://bugzilla.redhat.com/525402.
* THANKS: Correct ordering of Yang Ren's names.
NEWS
THANKS
doc/coreutils.texi
src/ls.c
tests/ls/infloop