[bug-notifications] [findutils 0004682]: -executable option not working
Mantis Bug Tracker
noreply at opencsw.org
Thu May 26 01:38:19 CEST 2011
A NOTE has been added to this issue.
======================================================================
https://www.opencsw.org/mantis/view.php?id=4682
======================================================================
Reported By: flod
Assigned To:
======================================================================
Project: findutils
Issue ID: 4682
Category: regular use
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-02-01 22:52 CET
Last Modified: 2011-05-26 01:38 CEST
======================================================================
Summary: -executable option not working
Description:
The "-executable" option is meant to select executable files and searchable
directories.
The option does not work with
4.4.2,REV=2009.06.08
as expected.
I cross-checked the results I hoped for under my Linux installation.
The man page says that the difference between -perm and -executable is
that the latter takes more complex things into account like acls.
So the option would be useful but does not work as expected.
======================================================================
----------------------------------------------------------------------
(0009081) jay (reporter) - 2011-05-26 01:38
https://www.opencsw.org/mantis/view.php?id=4682#c9081
----------------------------------------------------------------------
Yes. If access(2) says the file is executable, then the -executable test
correctly returns true. From the find documentation:
-executable
Matches files which are executable and directories which
are
searchable (in a file name resolution sense). This takes
into
account access control lists and other permissions
artefacts
which the -perm test ignores. This test makes use of
the
access(2) system call, and so can be fooled by NFS servers
which
do UID mapping (or root-squashing), since many systems
implement
access(2) in the client's kernel and so cannot make use of
the
UID mapping information held on the server. Because this
test
is based only on the result of the access(2) system call,
there
is no guarantee that a file for which this test succeeds
can
actually be executed.
More information about the bug-notifications
mailing list