GNU bug report logs - #11055
23.4; move-file-to-trash bug in files.el.gz with patch

Previous Next

Package: emacs;

Reported by: David Casperson <david_ghost <at> me.com>

Date: Wed, 21 Mar 2012 16:41:02 UTC

Severity: normal

Found in version 23.4

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 11055-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: David Casperson <david_ghost <at> me.com>
Cc: 11055-done <at> debbugs.gnu.org
Subject: Re: bug#11055: 23.4; move-file-to-trash bug in files.el.gz with patch
Date: Wed, 21 Mar 2012 22:49:34 -0400
> 1.  Create a file whose name is not a legal regular expression, e.g.,
>     =E2=80=9C~/[=E2=80=9C.=20
> 2.  Provoke move-to-trash, for instance
>     M-x eval-expression
>     (move-file-to-trash (expand-file-name =E2=80=9C~/[=E2=80=9C))

> The problem comes from using file-names as regular expressions without
> quoting.  Here is a potential patch.  You may use and copy-left as you
> see fit.=20=20

Thanks, I used a slightly different patch but it should be fixed now on
the trunk,


        Stefan




This bug report was last modified 13 years and 65 days ago.

Previous Next


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