mirror of
https://https.git.savannah.gnu.org/git/findutils.git
synced 2026-01-26 15:39:06 +00:00
The above command should output 'N' (for broken symlinks) not only in the ENOENT case, but also when an intermediate part of the symlink target file name is a file (ENOTDIR): $ touch file $ ln -s file/ENOTDIR link $ find link -printf '%Y %p\n' N link Previously, find output 'l' as for a resolvable symlink. * find/print.c (do_fprintf): Treat ENOTDIR the same as ENOENT to detect broken symlinks. * find/testsuite/find.gnu/printf-symlink.exp: Extend the test, and ... * find/testsuite/find.gnu/printf-symlink.xo: ... the expected output. * NEWS (Bug fixes, #54262): Explicitly mention that both ENOENT and ENOTDIR are used to detect broken symlinks. Suggested by Tavian Barnes.