[bug #58654] -perm -+w does not behave like chmod (POSIX)

Bernhard Voelker <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Update of bug #58654 (project findutils):

             Assigned to:                    None => berny                  

    _______________________________________________________

Follow-up Comment #4:

IMO, POSIX [1] is a tiny bit blurry about whether 'find -perm [-]MODE' shall
use
the umask value (as e.g. chmod) or not:

[1] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html

- "To start, a template shall be assumed with all file mode bits cleared.",
- "An op symbol of '+' shall set the appropriate mode bits in the template;
[...]"
- "'=' shall set the appropriate mode bits, without regard to the contents
   of the file mode creation mask of the process.".

So all we have for the + operator is that it should add the "appropriate"
(whatever "appropriate" means in this context) mode bits on top of 0000.
Therefore, I think that the current implementation follows the
specification.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58654>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.