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/