[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Richard Hansen
Subject: [bug #58654] -perm -+w does not behave like chmod (POSIX)
Date: Thu, 4 Feb 2021 11:37:16 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0

Follow-up Comment #10, bug #58654 (project findutils):

> It is not very clear if the 3 conditions are logically OR-ed or AND-ed.
The proposed wording change seems clear to me. Note the use of the word "and":
"... all files... with S_IWUSR set..., S_IWGRP set..., and S_IWOTH set..." Do
you have a suggestion for how we can improve the wording?

> Furthermore, in practice, `find -perm -+w` will output only files which have
ugo+w permissions, regardless of the current umask, right?
GNU find's -perm option currently ignores umask. Other implementations of find
(e.g., from the BSDs) do not ignore umask. The reason this was brought up on
the mailing list
(https://lists.gnu.org/archive/html/bug-findutils/2021-02/msg00000.html) was
because the change to POSIX would make GNU find's current behavior clearly
non-conforming, which could confuse or disappoint users. Ideally, GNU find's
behavior would be changed to match the new wording, at least when
POSIXLY_CORRECT is set. We (the Austin Group) would like to know if the
maintainers of GNU find object to the change, as it would influence the
wording we put the next version of the POSIX standard.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]