[bug-notifications] [findutils 0004682]: -executable option not working
Mantis Bug Tracker
noreply at opencsw.org
Thu May 26 01:15:45 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:15 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.
======================================================================
----------------------------------------------------------------------
(0009080) flod (reporter) - 2011-05-26 01:15
https://www.opencsw.org/mantis/view.php?id=4682#c9080
----------------------------------------------------------------------
setup:
CSWfindutils 4.4.2,REV=2011.04.04
SunOS sun 5.10 Generic_144489-14 i86pc i386 i86pc
/tmp/test> la
insgesamt 8
drwxr-x--- 2 root root 178 26. Mai 01:07 .
drwxrwxrwt 3 root sys 308 26. Mai 01:07 ..
---------- 1 root root 0 26. Mai 01:07 file
--
relevant output of truss gfind . -executable :
[...]
open64(".", O_RDONLY|O_LARGEFILE) = 3
fchdir(3) = 0
fstatat64(-3041965, ".", 0x080A8764, 0x00001000) = 0
open64(".", O_RDONLY|O_NONBLOCK|O_NOCTTY) = 4
fchdir(4) = 0
access(".", X_OK) = 0
ioctl(1, TCGETA, 0x08046654) = 0
fstat64(1, 0x080465C0) = 0
.
write(1, " .\n", 2) = 2
openat(-3041965, ".", O_RDONLY|O_NDELAY|O_LARGEFILE) = 5
fcntl(5, F_SETFD, 0x00000001) = 0
fstat64(5, 0x08047850) = 0
fstat64(5, 0x08047860) = 0
fchdir(5) = 0
getdents64(5, 0xFEF34000, 8192) = 72
getdents64(5, 0xFEF34000, 8192) = 0
close(5) = 0
fstatat64(-3041965, "file", 0x080A8A9C, 0x00001000) = 0
access("file", X_OK) = 0
./file
write(1, " . / f i l e\n", 7) = 7
[...]
--
output:
.
./file
expected output:
.
Does that help?
More information about the bug-notifications
mailing list