[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #58654] -perm -+w does not behave like chmod (POSIX)
From: |
Bernhard Voelker |
Subject: |
[bug #58654] -perm -+w does not behave like chmod (POSIX) |
Date: |
Wed, 8 Jul 2020 17:14:30 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #58654] -perm -+w does not behave like chmod (POSIX),
Bernhard Voelker <=