GNU bug report logs - #61708
28.2; file-modes-symbolic-to-number inconsistency

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thievol <at> posteo.net>

Date: Wed, 22 Feb 2023 13:59:02 UTC

Severity: normal

Found in version 28.2

Full log


View this message in rfc822 format

From: Thierry Volpiatto <thievol <at> posteo.net>
To: Andreas Schwab <schwab <at> suse.de>
Cc: 61708 <at> debbugs.gnu.org
Subject: bug#61708: 28.2; file-modes-symbolic-to-number inconsistency
Date: Wed, 22 Feb 2023 17:03:56 +0000
[Message part 1 (text/plain, inline)]
Andreas Schwab <schwab <at> suse.de> writes:

> On Feb 22 2023, Thierry Volpiatto wrote:
>
>> So how do you interpret this: "drwxr-x---" (from file-attributes)?
>
> This is not a symbolic mode.

(file-modes-number-to-symbolic #o750)
=>"-rwxr-x---"

I will reformulate my question:

How one convert the output of (nth 8 (file-attributes "/home/user")) to
numeric mode?

-- 
Thierry
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.