URL:
<http://savannah.gnu.org/bugs/?38474>
Summary: Unintended (?) behaviour change of -perm +mode
predicate
Project: findutils
Submitted by: matthijs
Submitted on: Wed 06 Mar 2013 08:50:37 AM GMT
Category: find
Severity: 3 - Normal
Item Group: Wrong result
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.5.11
Fixed Release: None
_______________________________________________________
Details:
It seems that in findutils 4.5.11 the find -perm +mode has broken (with a
numerical mode). -perm /mode is still working as expected and as before.
See this example:
$ mkdir /tmp/foo
$ touch /tmp/foo/bar
$ chmod u+x /tmp/foo/bar
$ find --version | head -1
find (GNU findutils) 4.4.2
$ find /tmp/foo -perm +0100
/tmp/foo
/tmp/foo/bar
$ find /tmp/foo -perm /0100
/tmp/foo
/tmp/foo/bar
$ find --version | head -1
find (GNU findutils) 4.5.10
$ find /tmp/foo -perm +0100
/tmp/foo
/tmp/foo/bar
$ find /tmp/foo -perm /0100
/tmp/foo
/tmp/foo/bar
$ find --version | head -1
find (GNU findutils) 4.5.11
$ find /tmp/foo -perm +0100
$ find /tmp/foo -perm /0100
/tmp/foo
/tmp/foo/bar
Note that with version 4.5.11, -perm +0100 returns no files, even though there
is an executable directory and file present.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38474>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/