Subject: bug#28792: 26.0.60; Deleting to a custom trash directory in Dired gives error

From: Tino Calancha <[email-masked]>
Date: Thu, 12 Oct 2017 22:34:59 +0900

Kaushal Modi <[email-masked]> writes:

I don't have strong opinion about the issue because I don't
use the trash either.

>From a git bisect:

01c885f21f343045783eb9ad1ff5f9b83d6cd789 is the first bad commit
commit 01c885f21f343045783eb9ad1ff5f9b83d6cd789
Author: Paul Eggert <[email-masked]>
Date:   Sun Sep 10 15:39:24 2017 -0700

    Fix race with rename-file etc. with dir NEWNAME
    
    This changes the behavior of rename-file etc. slightly.
    The old behavior mostly disagreed with the documentation, and had
    a race condition bug that could allow attackers to modify victims'
    write-protected directories (Bug#27986).