[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61708: 28.2; file-modes-symbolic-to-number inconsistency
From: |
Thierry Volpiatto |
Subject: |
bug#61708: 28.2; file-modes-symbolic-to-number inconsistency |
Date: |
Wed, 22 Feb 2023 14:58:29 +0000 |
Andreas Schwab <schwab@suse.de> writes:
> 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".
So how do you interpret this: "drwxr-x---" (from file-attributes)?
"u=?,g=?,o=?" to pass it to file-modes-symbolic-to-number?
(nth 8 (file-attributes "/home/user"))
"drwxr-x---"
(read-file-modes nil "/home/user")
#o750
Thanks.
> See
> https://pubs.opengroup.org/onlinepubs/9699919799/utilities/chmod.html
> for the full syntax.
--
Thierry
signature.asc
Description: PGP signature
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Thierry Volpiatto, 2023/02/22
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Thierry Volpiatto, 2023/02/22
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Andreas Schwab, 2023/02/22
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency,
Thierry Volpiatto <=
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Andreas Schwab, 2023/02/22
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Thierry Volpiatto, 2023/02/22
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Gregory Heytings, 2023/02/22
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Thierry Volpiatto, 2023/02/22
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Gregory Heytings, 2023/02/22
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Thierry Volpiatto, 2023/02/23
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Eli Zaretskii, 2023/02/23
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Thierry Volpiatto, 2023/02/23
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Andreas Schwab, 2023/02/23
- bug#61708: 28.2; file-modes-symbolic-to-number inconsistency, Gregory Heytings, 2023/02/23