[Bug 244561] find -depth skips unreadable directories

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 2 20:18:42 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244561

            Bug ID: 244561
           Summary: find -depth skips unreadable directories
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: tavianator at tavianator.com

Created attachment 212103
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=212103&action=edit
Patch for this issue

find -depth skips unreadable directories, while find without -depth prints it. 
For example:

$ mkdir -p foo/bar
$ chmod -r foo
$ find foo -depth
find: foo: Permission denied
$ find foo
foo
find: foo: Permission denied

GNU find had the same bug: https://savannah.gnu.org/bugs/?54171

I think the attached patch should fix it.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list