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: b...@freebsd.org
          Reporter: taviana...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to