GNU bug report logs - #62260
30.0.50; [PATCH] Restrict auto-save file mode

Previous Next

Package: emacs;

Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>

Date: Sat, 18 Mar 2023 15:19:01 UTC

Severity: normal

Tags: patch

Merged with 57395

Found in versions 28.1, 30.0.50

Full log


Message #23 received at 62260 <at> debbugs.gnu.org (full text, mbox):

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 62260 <at> debbugs.gnu.org
Subject: Re: bug#62260: 30.0.50; [PATCH] Restrict auto-save file mode
Date: Sat, 18 Mar 2023 20:22:55 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Did you try a different user?
>
> Actually, the right question is: what exactly did you try?  As you can
> see from the code, 0666 value is used only for buffers that don't
> visit files.  Did you try with such a buffer, and what exactly did you
> try?

I didn't with a buffer not visiting a file.  I have tried with a file in
/tmp that by default on my system is created with mode 0644.  Then I
write something into this file and do 'M-x do-auto-save'.

With this patch, the /tmp directory now contains an auto-save file with
mode 0600.
-- 
Manuel Giraud




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

Previous Next


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