unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Thierry Volpiatto <thievol@posteo.net>
Cc: 61708@debbugs.gnu.org
Subject: bug#61708: 28.2; file-modes-symbolic-to-number inconsistency
Date: Wed, 22 Feb 2023 15:26:09 +0100	[thread overview]
Message-ID: <mvm4jrdrd32.fsf@suse.de> (raw)
In-Reply-To: <878rgp244x.fsf@posteo.net> (Thierry Volpiatto's message of "Wed,  22 Feb 2023 13:49:08 +0000")

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."





  parent reply	other threads:[~2023-02-22 14:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-22 13:49 bug#61708: 28.2; file-modes-symbolic-to-number inconsistency Thierry Volpiatto
2023-02-22 14:16 ` Thierry Volpiatto
2023-02-22 14:26 ` Andreas Schwab [this message]
2023-02-22 14:58   ` Thierry Volpiatto
2023-02-22 15:45     ` Andreas Schwab
2023-02-22 17:03       ` Thierry Volpiatto
2023-02-22 17:11         ` Gregory Heytings
2023-02-22 17:44           ` Thierry Volpiatto
2023-02-22 21:40             ` Gregory Heytings
2023-02-23  4:44               ` Thierry Volpiatto
2023-02-23  6:08               ` Eli Zaretskii
2023-02-23  7:00                 ` Thierry Volpiatto
2023-02-23  9:18               ` Andreas Schwab
2023-02-23  9:27                 ` Gregory Heytings
2023-02-23  9:14         ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvm4jrdrd32.fsf@suse.de \
    --to=schwab@suse.de \
    --cc=61708@debbugs.gnu.org \
    --cc=thievol@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).