Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Mar 2020 20:18:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 244561] find -depth skips unreadable directories
Message-ID:  <bug-244561-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244561

            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@FreeBSD.org
          Reporter: tavianator@tavianator.com

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

find -depth skips unreadable directories, while find without -depth prints =
it.=20
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244561-227>