Subject: bug#61708: 28.2; file-modes-symbolic-to-number inconsistency

From: Andreas Schwab <[email-masked]>
Date: Wed, 22 Feb 2023 15:26:09 +0100

On Feb 22 2023, Thierry Volpiatto wrote:

> (format "%o" (file-modes-symbolic-to-number "u=rwx,g=r-x,o=---"))
> "740"

This is the correct interpretation of the mode string, with "g=r-x"
meaning the same as "g=r,g-x" or just "g=r".

See
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/chmod.html
for the full syntax.

-- 
Andreas Schwab, SUSE Labs, [email-masked]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."