[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #14748] find -perm /zzz gives wrong result when zzz evaluates to an
From: |
James Youngman |
Subject: |
[bug #14748] find -perm /zzz gives wrong result when zzz evaluates to an all-zero mask |
Date: |
Sat, 8 Oct 2005 06:25:58 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.12) Gecko/20050922 Firefox/1.0.7 (Ubuntu package 1.0.7) |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14748>
Summary: find -perm /zzz gives wrong result when zzz
evaluates to an all-zero mask
Project: findutils
Submitted by: jay
Submitted on: Sat 10/08/05 at 06:25
Category: find
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: jay
Originator Name: Eric Blake
Originator Email: ericb
Open/Closed: Open
Release: 4.2.25
Fixed Release: None
_______________________________________________________
Details:
This bug report has been split out from part of a discussion of an earlier
problem. In a discussion about bug #14619, Eric Blake writes:-
I have, however, found a bug in 4.2.25:
$ touch 000 100 111 777
$ for f in * ; do touch $f $f ; done
$ find . -perm --x
.
./000
./100
./111
./777
$ find . -perm +-x
./000
$ find . -perm /-x
$
The first two are correct. --x means use mode "-x", which maps to the
template 0000, and find all files that have all set bits in the template set
on the file (no bits meet this criteria), without regard to the state of any
bit cleared in the template (ie, every file should match). +-x means use mode
"+-x", which maps to the template 0000, and do an exact match (only ./000 has
all permissions cleared).
However, /-x means use mode "-x", and find all files that have any set bit in
the template set on the file (no bits meet this criteria), without regard to
the state of any bit cleared in the template (ie, every file should match).
So the bug is that /-x should behave like --x, but did not.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14748>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #14748] find -perm /zzz gives wrong result when zzz evaluates to an all-zero mask,
James Youngman <=