[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #54263] find -L treats ENOENT and ENOTDIR differently
From: |
Tavian Barnes |
Subject: |
[bug #54263] find -L treats ENOENT and ENOTDIR differently |
Date: |
Sat, 7 Jul 2018 15:39:51 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
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/
- [bug #54263] find -L treats ENOENT and ENOTDIR differently,
Tavian Barnes <=