URL: <https://savannah.gnu.org/bugs/?58654>
Summary: -perm -+w does not behave like chmod (POSIX) Project: findutils Submitted by: mohdakram Submitted on: Thu 25 Jun 2020 08:48:15 PM UTC Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Originator Name: Originator Email: Open/Closed: Open Release: 4.7.0 Discussion Lock: Any Fixed Release: None _______________________________________________________ Details: On macOS, using built-in find: $ umask 0022 $ touch file $ chmod +w $ find file -perm -+w file On Fedora, using GNU find: $ umask 0002 $ touch file $ chmod +w $ find file -perm -+w Per POSIX, find should find file because it satisfies +w given the current umask. The umask should only be ignored if u/g/o are specified or if = is used. This is the same behavior as chmod. GNU find seems to always ignore the umask. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?58654> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/