#172187 should not stat() excluded files

Package:
findutils
Source:
findutils
Description:
utilities for finding files--find, xargs
Submitter:
Bas Zoetekouw
Date:
2021-09-22 04:43:24 UTC
Severity:
normal
Tags:
#172187#5
Date:
2002-12-08 08:59:20 UTC
From:
To:
I've got a smbfs permanently mounted on /mnt/iasoon_mp3 (iasoon being my
second computer).  If iasoon is turned off, stat()'ing /mnt/iasoon_mp3
gives an Input/output error (yeah, I really should be using a
automounter).

The problem is, that nightly cronjobs run command like
  find / -xdev \! -path /mnt/iasoon_\*
which result in a "input/output error " notice sent to root every night.
The problem seems to be that, even though the file is explicitly
off-limits for find, the /mnt/iasoon_mp3 dir is stat()'ed anyway.  I
think that's a bug.

For example, stracing the command " find /mnt -xdev -maxdepth 2 \! -path
/mnt/iasoon_\*" gives (relevant part shown only):

lstat64("iasoon_mp3", 0xbffff6b8)       = -1 EIO (Input/output error)
write(2, "find: ", 6)                   = 6
write(2, "/mnt/iasoon_mp3", 15)         = 15

#172187#10
Date:
2005-01-29 14:37:17 UTC
From:
To:
Unfortunately, recent versions of findutils 4.2.x will stat the
top-level directory of all mounted filesystems as part of an enhanced
security check.  Hence the directory you are having a problem with
will always be stat()ed anyway.

Regards,
James.

#172187#17
Date:
2021-05-18 06:23:34 UTC
From:
To:
Greeting to you once again



I am writing for the second time as I did not receive any reply from you to
my previous message.



Kindly reply so we can discuss the subject as soon as possible.



Sincerely,



Arthur Clerk

#172187#22
Date:
2021-09-22 04:24:44 UTC
From:
To:
Hello,

Good morning,

We have gone through your samples from a partner and Here is our  Order
List. Please do bear in mind that we are very much in  need of this
order, quote your competitive prices.

Kindly send the Order confirmation.

Your early reply will be much appreciated.

Best Regards,

Maryanah Erwin.

PT FINDORA INTERNUSA

Jln Pahlawan 66 Kec. Arjawinangun

45162 CIREBON West-Java INDONESIA

tel : +62 231 357334

fax: +62 231 357260

email: marketing@findora.com