]> git.eshelyaron.com Git - emacs.git/commit
Handle sensitive auto-save or backup remote files (Bug#45245)
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 14 Jun 2021 09:25:13 +0000 (11:25 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 14 Jun 2021 09:25:13 +0000 (11:25 +0200)
commit6536112bdce592eed9f3d71022aafbe6be44da45
tree7d11f9feef445fb803883d2e89b06dc36885f299
parentd0c7d8bc22a935f2a79747a96b4043f0b449a212
Handle sensitive auto-save or backup remote files (Bug#45245)

* doc/misc/tramp.texi (Auto-save and Backup):
Describe tramp-allow-unsafe-temporary-files.
(Ad-hoc multi-hops): Use proper format.

* etc/NEWS: Mention confirmation for writing sensitive auto-save
or backup remote files to the local temporary directory..

* lisp/net/tramp-cache.el (tramp-dump-connection-properties):
Strengthen test.

* lisp/net/tramp.el (tramp-allow-unsafe-temporary-files): New defcustom.
(tramp-handle-find-backup-file-name)
(tramp-handle-make-auto-save-file-name): Don't expose sensible
auto-save or backup files on local temporary directory.  (Bug#45245)

* test/lisp/net/tramp-tests.el (tramp--test-always): New defalias.
(tramp-test10-write-region, tramp-test21-file-links)
(tramp--test--deftest-direct-async-process): Use it.
(tramp-test37-make-auto-save-file-name)
(tramp-test38-find-backup-file-name): Extend tests.
doc/misc/tramp.texi
etc/NEWS
lisp/net/tramp-cache.el
lisp/net/tramp-sh.el
lisp/net/tramp.el
test/lisp/net/tramp-tests.el