bug-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Andreas Schwab
Subject: bug#61708: 28.2; file-modes-symbolic-to-number inconsistency
Date: Wed, 22 Feb 2023 15:26:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

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, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





reply via email to

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