bug-findutils
[Top][All Lists]
Advanced

[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: Wed, 24 Apr 2013 08:03:30 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0

Follow-up Comment #12, bug #38474 (project findutils):

> In the case of -perm, there is no existing file mode.

Sure, but POSIX says that find should treat the existing file mode as 0 here. 
For example, POSIX says that "find /tmp -perm +rw" finds all files under /tmp
that are read-write to everyone and that have no other permissions. Admittedly
"+rw" means the same thing as "=rw" here, and "=rw" is clearer; but the point
is that there's good precedent for saying that 'find -perm' should mimic
chmod's syntax, even when the syntax is obscure.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38474>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]