find(1): Is this a bug or not?
Garrett Cooper
gcooper at FreeBSD.org
Mon Nov 29 22:15:16 UTC 2010
On Mon, Nov 29, 2010 at 12:39 PM, Matthew Jacob <mj at feral.com> wrote:
> can you report out the actual command line you're using and what release
> it's from?
>
> On 11/29/2010 12:08 PM, Denise H. G. wrote:
>>
>> Hi,
>>
>> I found that, while searching for empty directories, find(1) will not
>> continue if it encounters a dir it can't enter (e.g. no privilege). I
>> don't know if it's so designed... I've checked NetBSD and OpenBSD's
>> implementations (almost identical to that of FreeBSD's). And they behave
>> the same way as FreeBSD's find(1) does under the circumstance.
>>
>> I'm wondering if this is a bug or not.
I thought I had seen something similar to this in the past, but I
can't reproduce it with simple cases:
$ find .
.
./cant-touch-this
find: ./cant-touch-this: Permission denied
./hello-world
./hello-world/are-you-sure
$ find . -name '*'
.
./cant-touch-this
find: ./cant-touch-this: Permission denied
./hello-world
./hello-world/are-you-sure
$ find . -type f
find: ./cant-touch-this: Permission denied
./hello-world/are-you-sure
$ sudo find . -type f
./cant-touch-this/mchammer
./hello-world/are-you-sure
Thanks,
-Garrett
More information about the freebsd-hackers
mailing list