]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: display command line symlinks that return ELOOP
authorPádraig Brady <P@draigBrady.com>
Wed, 7 Jun 2023 12:42:36 +0000 (13:42 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 7 Jun 2023 18:59:40 +0000 (19:59 +0100)
commitbf574deec8e811db230566fb085028aa6958d0fd
tree4999493114805136a051611ff3f7d0e1a7e0e2de
parente1e21f6dfff9c49633a358aecef5c02a7091ec1d
ls: display command line symlinks that return ELOOP

* src/ls.c (gobble_file): Ensure we lstat() a symlink
specified on the command line, if we receive ELOOP from stat().
* tests/ls/symlink-loop.sh: Add a new test.
* tests/local.mk: Reference the new test.
* NEWS: Mention the bug fix.
Fixes https://bugs.gnu.org/63931
NEWS
src/ls.c
tests/local.mk
tests/ls/symlink-loop.sh [new file with mode: 0755]