Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111253 - sys-apps/findutils-4.2.25 find does no run correctly with "-perm +XXX" option
Summary: sys-apps/findutils-4.2.25 find does no run correctly with "-perm +XXX" option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Ciaran McCreesh
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-02 07:35 UTC by Kraml Liu
Modified: 2005-12-06 18:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kraml Liu 2005-11-02 07:35:54 UTC
According to the example secion of the /usr/bin/find manpage, these three
command should do the same thing:
    find . -perm +022
    find . -perm +g+w,o+w
    find . -perm +g=w,o=w
But I have only the first one having output under /bin directory. And I've tried
"find /bin" and found only "-perm +[octal form]" have output, but "-perm
+[symbolic form]" has no output. i.e.:
    find /bin -perm +100
      OUTPUT: /bin/XXXX.....
    find /bin -perm +u+x
      OUTPUT: NOTHING

This lead to revdep-rebuild does not check files in $PATH because it use "-perm
+u+x" at line 312 (gentoolkit-0.2.1_pre8): run revdep-rebuild -p and check
~/.revdep-rebuild.1_files you will not found /bin/*, /sbin/* etc etc...

Reproducible: Always
Steps to Reproduce:
1.find /bin -perm +100
2.find /bin -perm +u+x
3.

Actual Results:  
The first command has the files under /bin printed, the second does not.

Expected Results:  
The two commands should have identical output, print the files under /bin

Portage 2.0.53_rc7 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3,
2.6.12-cko3-co0.7.1 i686)
=================================================================
System uname: 2.6.12-cko3-co0.7.1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.12.0_pre9
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d /etc/terminfo
/etc/texmf/web2c /usr/lib/X11/xkb /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/media/d/distfiles"
FEATURES="autoconfig buildpkg ccache digest distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.averse.net/pub/gentoo
http://mirror.pacific.net.au/linux/Gentoo http://mirror.datapipe.net/pub/gentoo"
LANG="zh_CN.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,-O1,-zcombreloc,--enable-new-dtags,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acl acpi alsa arts audiofile avi bash-completion berkdb
bitmap-fonts bzip2 cairo cdr cjk crypt cscope cups curl dbus dts dvd eds emboss
encode esd exif fam fbcon firefox flac foomaticdb gdbm gif gnome gphoto2 gpm
gstreamer gtk gtk2 hal howl imagemagick imlib java jpeg jpeg2k kde
kdeenablefinal ldap libg++ libwww mad mmx mmx2 mng motif mozilla mp3 mpeg mysql
ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png pnp python qt
readline samba sdl slang sse ssl tcpd tetex theora tiff tls truetype
truetype-fonts type1-fonts udev unicode usb v4l v4l2 vorbis win32codecs xine
xml2 xv zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LINGUAS



coreutils version 5.3.0-r2
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-02 07:49:12 UTC
(In reply to comment #0)
> coreutils version 5.3.0-r2

Uhm...

$ equery b `which find`

[ Searching for file(s) /usr/bin/find in *... ]
sys-apps/findutils-4.1.20-r1 (/usr/bin/find)

Your findutils version, please. Works fine here with 4.1.20-r1.

Comment 2 Kraml Liu 2005-11-02 07:54:56 UTC
err.... why I post coreutil version....
sys-apps/findutils-4.2.25.
I have two x86 running ~x86 and a ppc running ~ppc, same problem.
Comment 3 Kraml Liu 2005-11-02 08:05:39 UTC
emereged 4.1.20-r1 and 4.2.24, both ok, 4.2.25 borken.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-11-02 08:07:57 UTC
You forgot to reopen.
Comment 5 Kraml Liu 2005-11-02 08:13:57 UTC
sorry but I don't understand what you mean, reopen the bug? isn't it in open state?
Comment 7 Kraml Liu 2005-11-02 09:12:35 UTC
Pls consider hard mask 4.2.25.
Comment 8 Ciaran McCreesh 2005-11-02 09:16:24 UTC
No.
Comment 9 Ciaran McCreesh 2005-12-06 18:52:01 UTC
Fixed in 4.2.27. If it isn't, I'll cry.