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


View this message in rfc822 format

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 62260 <at> debbugs.gnu.org
Subject: bug#62260: 30.0.50; [PATCH] Restrict auto-save file mode
Date: Sun, 19 Mar 2023 14:56:16 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

[...]

>> So this is limited to Tramp and how it handles auto-saving?  Adding
>> Michael, in case he has ideas for how to solve this issue.
>
> Read the Tramp manual (info "(tramp) Auto-save File Lock and Backup")
> You can use auto-save-file-name-transforms or tramp-auto-save-directory
> in order to change the location of auto-saved files. This is the
> recommended way to protect sensible data.

Hi Michael,

Thanks for your inputs.  I have tried with
'auto-save-file-name-transforms' like this:

(add-to-list 'auto-save-file-name-transforms
    '("\\`/\\(?:doas\\|ksu\\|su\\(?:do\\)?\\):.*\\'" "/dev/null" nil))

But now, auto-save tries to create "/dev/#null#".  How can I fix it to
"/dev/null"?
-- 
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.