GNU bug report logs - #49711
27.2; Deleting a directory called ~ deletes home directory

Previous Next

Package: emacs;

Reported by: Al Haji-Ali <abdo.haji.ali <at> gmail.com>

Date: Fri, 23 Jul 2021 15:08:02 UTC

Severity: normal

Tags: moreinfo

Found in version 27.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: abdo.haji.ali <at> gmail.com, 49711 <at> debbugs.gnu.org
Subject: bug#49711: 27.2; Deleting a directory called ~ deletes home directory
Date: Sat, 24 Jul 2021 14:27:21 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Hmm... you replaced expand-file-name with directory-append, but what
> if there's a real "~" in the arguments, or some ".." etc. stuff?  That
> would now wind up in the trash info, no?

Sorry, I don't follow you here -- if we're trashing a file called
"/tmp/~", then the "~" file ends up in the trash now, as expected.

Do you mean "~/foo"?  That works the same as before.

(Moving "/tmp/.." to trash fails the same way as before.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 301 days ago.

Previous Next


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