From unknown Sat Jun 21 05:16:10 2025 X-Loop: don@donarmstrong.com Subject: bug#885: dired deleting a file can delete the entire directory Reply-To: driabslg@yahoo.com, 885@debbugs.gnu.org Resent-From: a a Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Sep 2008 13:00:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 885 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122053262713825 (code B ref -1); Thu, 04 Sep 2008 13:00:03 +0000 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 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 unknown Sat Jun 21 05:16:10 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: driabslg@yahoo.com Subject: bug#885 closed by Chong Yidong (Re: dired deleting a file can delete the entire directory) Message-ID: References: <87prni1eai.fsf@cyd.mit.edu> <29958.20075.qm@web39602.mail.mud.yahoo.com> X-Emacs-PR-Message: they-closed 885 X-Emacs-PR-Package: emacs Reply-To: 885@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1220649905-12049-1" This is a multi-part message in MIME format... ------------=_1220649905-12049-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #885: dired deleting a file can delete the entire directory It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 885: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D885 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1220649905-12049-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >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. ------------=_1220649905-12049-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >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 ------------=_1220649905-12049-1--