GNU bug report logs - #47960
28.0.50; delete-by-moving-to-trash fails on directories?

Previous Next

Package: emacs;

Reported by: Protesilaos Stavrou <info <at> protesilaos.com>

Date: Thu, 22 Apr 2021 20:49:01 UTC

Severity: normal

Tags: fixed, patch

Merged with 48280

Found in version 28.0.50

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: Gregory Heytings <gregory <at> heytings.org>
To: Protesilaos Stavrou <info <at> protesilaos.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 47960 <at> debbugs.gnu.org
Subject: bug#47960: 28.0.50; delete-by-moving-to-trash fails on directories?
Date: Fri, 23 Apr 2021 20:39:20 +0000
[Message part 1 (text/plain, inline)]
>
> What seems to be the issue is when a deleted entry of the same name 
> already exists.  I emptied my trash and tried the above recipe: the 
> problem would not occur.  But upon immediate retry the problem appeared, 
> presumably because "test" already existed in the trash.
>

Indeed, this path of the code was recently changed (commit a5197e2240), 
and indeed, when a directory with the same name is trashed twice, it 
fails.  Patch attached.

(It can't be applied yet, I'm still waiting for the end of my paperwork.)
[Fix-bug-when-moving-directories-to-trash.patch (text/x-diff, attachment)]

This bug report was last modified 4 years and 59 days ago.

Previous Next


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