]> git.eshelyaron.com Git - emacs.git/commit
Fix cross-filesystem directory trashing (Bug#58721)
authorMike Kupfer <mkupfer@alum.berkeley.edu>
Sun, 30 Oct 2022 17:31:11 +0000 (10:31 -0700)
committerEli Zaretskii <eliz@gnu.org>
Thu, 24 Nov 2022 11:16:48 +0000 (13:16 +0200)
commit95d827f21ef7bc3ed91335a6418e17fbb4ed5c63
treef761c7c690d2605c0f1a9034b488515b5e5c2e51
parent3208a42c47c4f98cb03c4b15164ca83113244b40
Fix cross-filesystem directory trashing (Bug#58721)

* lisp/files.el (move-file-to-trash): When trashing a directory with
the same name as something that's already in the trash, copy it into
the trash folder and then delete it, rather than using rename-file.
lisp/files.el