URL:
<http://savannah.gnu.org/bugs/?54263>
Summary: find -L treats ENOENT and ENOTDIR differently
Project: findutils
Submitted by: tavianator
Submitted on: Sat 07 Jul 2018 07:39:49 PM UTC
Category: find
Severity: 3 - Normal
Item Group: Wrong result
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.6.0
Fixed Release: None
_______________________________________________________
Details:
$ touch file
$ ln -s nowhere broken
$ ln -s file/nowhere notdir
$ find -L
.
./file
./broken
find: ‘./notdir’: Not a directory
./notdir
So we get an error message if a link is broken in one way but not another.
Worse,
$ find -L broken
broken
$ find -L notdir
find: ‘notdir’: Not a directory
So at the top level, notdir is not even printed. Same with -H.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54263>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/