[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #58654] -perm -+w does not behave like chmod (POSIX)
From: |
Mohamed Akram |
Subject: |
[bug #58654] -perm -+w does not behave like chmod (POSIX) |
Date: |
Thu, 25 Jun 2020 16:48:17 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15 |
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/
- [bug #58654] -perm -+w does not behave like chmod (POSIX),
Mohamed Akram <=