From driabslg@yahoo.com Thu Sep 4 05:50:27 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.0 tests=BAYES_05,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Sep 2008 12:50:27 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84CoJ2q013552 for ; Thu, 4 Sep 2008 05:50:20 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbEHy-0008HI-J2 for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 08:50:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbEHw-0008G3-Pf for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 08:50:17 -0400 Received: from [199.232.76.173] (port=37929 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbEHw-0008G0-Gu for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 08:50:16 -0400 Received: from web39602.mail.mud.yahoo.com ([209.191.106.33]:39722) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KbEHw-00051o-9j for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 08:50:16 -0400 Received: (qmail 20657 invoked by uid 60001); 4 Sep 2008 12:50:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=MqP45D9knynwJUt1pRb11FX2nzWcsKMWHR4MA/a4pgsZq7X5w0yFCWWxeaALglF699aw6R1lU2zIylKc3qAZo6I3z4kSZywqP/jBPBNFK1uB0v5oV2GTmcAW+SS1/dSsthUSprHXD19tgbGlx4O62eQyL+MpUa2lyyKHm22xa/A=; X-YMail-OSG: hlxloQQVM1ngg6kPMMzF2hav5WQyMdDyWfUrVeuYJvpVSauqufEfSEIdn5xGnif2vsT88hnW22E7c120zCisi0FVpdjEkN4lIf7uv10L2hdMA2yiK8c09NywT4Klt54- Received: from [71.126.43.33] by web39602.mail.mud.yahoo.com via HTTP; Thu, 04 Sep 2008 05:50:14 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Thu, 4 Sep 2008 05:50:14 -0700 (PDT) From: a a Reply-To: driabslg@yahoo.com Subject: dired deleting a file can delete the entire directory To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <29958.20075.qm@web39602.mail.mud.yahoo.com> X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) If you create a file whose filename is a double quotation mark and try to delete it in dired-mode, and if you say yes to the questions, the entire directory is deleted. out@themovies:~% mkdir test out@themovies:~% cd test out@themovies:~/test% touch \"\" Now in emacs dired-mode remove the file "" /home/out/test: total used in directory 24 available 263498424 drwxr-xr-x 2 out out 4096 2008-09-04 08:28 . drwxr-xr-x 133 out out 20480 2008-09-04 08:28 .. D -rw-r--r-- 1 out out 0 2008-09-04 08:28 "" Delete (yes or no) yes Recursive delete of ? (yes or no) yes Killed dired buffer of , too (y or n) y Instead of just removing the file, the entire directory /home/out/test is deleted. The machine is running Ubuntu 7.10 (Gutsy), the version of emacs is 23.0.60.1, from Alexandre Vassalotti's deb package with xft support: deb http://ppa.launchpad.net/avassalotti/ubuntu gutsy main % emacs-snapshot-gtk --version GNU Emacs 23.0.60.1 Copyright (C) 2008 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. apt-cache policy emacs-snapshot emacs-snapshot: Installed: 1:20080228-2~gutsy Candidate: 1:20080228-2~gutsy Version table: *** 1:20080228-2~gutsy 0 500 http://ppa.launchpad.net gutsy/main Packages 100 /var/lib/dpkg/status 1:20070805-1ubuntu1 0 500 http://archive.ubuntu.com gutsy/universe Packages 500 http://us.archive.ubuntu.com gutsy/universe Packages From cyd@stupidchicken.com Fri Sep 5 14:16:58 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 885-done) by emacsbugs.donarmstrong.com; 5 Sep 2008 21:16:58 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m85LGtGS009970 for <885-done@emacsbugs.donarmstrong.com>; Fri, 5 Sep 2008 14:16:56 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 3A67E57E18A; Fri, 5 Sep 2008 17:19:33 -0400 (EDT) From: Chong Yidong To: a a Cc: 885-done@debbugs.gnu.org Subject: Re: dired deleting a file can delete the entire directory Date: Fri, 05 Sep 2008 17:19:33 -0400 Message-ID: <87prni1eai.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > If you create a file whose filename is a double quotation mark and try > to delete it in dired-mode, and if you say yes to the questions, the > entire directory is deleted. I've checked in a fix. Thanks. From unknown Sat Jun 21 03:23:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sat, 04 Oct 2008 14:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator