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: Eric Blake
Subject: [bug #38474] Unintended (?) behaviour change of -perm +mode predicate
Date: Sat, 20 Apr 2013 17:04:37 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0

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

> POSIX only calls out symbolic mode, not numeric mode

Well, POSIX also calls out numeric mode:

-perm [−]onum
 If the <hyphen> is omitted, the primary shall evaluate as true when the file
mode
bits exactly match the value of the octal number onum (see the description of
the
octal mode in chmod). Otherwise, if onum is prefixed by a <hyphen>, the
primary
shall evaluate as true if at least all of the bits specified in onum are set.
In both
cases, the behavior is unspecified when onum exceeds 07777.

But there is no mention of parsing a '+' when deciding if a value is an onum.

    _______________________________________________________

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]