Hello, thanks for taking a look! My reproducer is at the end.
What I missed to state: this is on amd64, OpenBSD 7.3-current (GENERIC.MP) #1356: Mon Aug 28 09:35:30 MDT 2023 [email protected] (George Koehler), 2023.08.28 (Mon) 22:01 (CEST): > On Mon, 28 Aug 2023 12:42:39 +0200 > Marcus MERIGHI <[email protected]> wrote: > > > My complete crontab(5) entry reads: > > > > /usr/bin/find ~/ -maxdepth 1 -fstype local -name "*.core" -delete > > > > Now I get error messages saying "Access Denied" for directories that > > find(1) should not access due to "-maxdepth 1". > > I can't produce such errors. I observe that -maxdepth 1 and -delete > work well together. There's no bug unless someone can provide more > specific instructions to produce the error. $ cd /tmp $ mkdir -p foo/bar/baz $ chmod a= foo/bar/baz $ cd foo $ find . -maxdepth 1 -fstype local -name "*.core" $ find . -maxdepth 1 -fstype local -name "*.core" -delete find: ./bar/baz: Permission denied Marcus
