GNU bug report logs - #59986
30.0.50; Can't trash file with broken symbolic link

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Mon, 12 Dec 2022 06:53:01 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 59986 <at> debbugs.gnu.org, Jean Louis <bugs <at> gnu.support>
Subject: bug#59986: 30.0.50; Can't trash file with broken symbolic link
Date: Thu, 15 Dec 2022 01:13:04 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> Meaning that you don't remember whether the file which was already in
> Trash in bug#47135 was or wasn't a symlink?

AFAIU it had been - the original report says:

| In my trash there is this file:
|
|   lrwxrwxrwx 1  175 Jun 18  2019 Rock-and-Mineral-Identification.pdf -> /home/...

I think there is indeed a problem with those `file-exists-p' tests in
`move-file-to-trash' that check whether the file name to add (in the
trash) already exists: when that name is the existing name of a broken
symlink the result is `nil'.

Those tests probably need to handle symlinks specially (using
file-symlink-p I guess).

Michael.




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

Previous Next


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