[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #38474] Unintended (?) behaviour change of -perm +mode predicate
From: |
Paul Eggert |
Subject: |
[bug #38474] Unintended (?) behaviour change of -perm +mode predicate |
Date: |
Mon, 22 Apr 2013 22:24:42 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 |
Follow-up Comment #10, bug #38474 (project findutils):
Thanks for catching that problem with 'havekind'. A patch is attached.
I don't think the code should reject -perm /+0111, or -+0111 for that matter.
'chmod +0111 foo' has a well-defined meaning with GNU chmod, and it's nicer
if 'find' is compatible with 'chmod'. At some point in the future I would
like to remove the special check that prohibits 'find -perm +0111', and allow
it to work as well, compatibly with GNU chmod. Now's not a good time to do
that, as people may be expecting the no-longer-supported syntax, but after
another few years we should be able to enable 'find -perm +0111' with the new
meaning.
Checking explicitly for octal digits helps make the code a bit clearer to me,
but it's no big deal. (On architectures where numbers from 0 through 7 can be
represented as immediate bits, it might be a tiny bit faster to check for
octal digits than to check for decimal digits, but again it's no big deal...)
(file #27931)
_______________________________________________________
Additional Item Attachment:
File name: havekind.txt Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38474>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate, Andreas Metzler, 2013/04/07
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate, Andreas Metzler, 2013/04/07
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate, James Youngman, 2013/04/20
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate, Ludovic Brenta, 2013/04/20
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate, Eric Blake, 2013/04/20
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate, Eric Blake, 2013/04/20
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate, Paul Eggert, 2013/04/21
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate, James Youngman, 2013/04/22
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate, Eric Blake, 2013/04/22
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate,
Paul Eggert <=
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate, James Youngman, 2013/04/24
- [bug #38474] Unintended (?) behaviour change of -perm +mode predicate, Paul Eggert, 2013/04/24