From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Super-User Newsgroups: gmane.emacs.bugs Subject: Dangerous: delete-file deletes current directory as root!! Date: Wed, 9 Oct 2002 18:58:37 +0200 (MEST) Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200210091658.g99Gwbdc029504@mailserver.adm.unipi.it> Reply-To: pot@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1034183091 29942 127.0.0.1 (9 Oct 2002 17:04:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2002 17:04:51 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17zKGP-0007me-00 for ; Wed, 09 Oct 2002 19:04:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17zKGm-0000R9-00; Wed, 09 Oct 2002 13:05:12 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17zKGM-0000Gz-00 for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2002 13:04:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17zKGJ-0000Ck-00 for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2002 13:04:45 -0400 Original-Received: from mailserver.adm.unipi.it ([131.114.190.19]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17zKGI-0000BN-00 for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2002 13:04:42 -0400 Original-Received: from mailserver.adm.unipi.it (localhost [127.0.0.1]) by mailserver.adm.unipi.it (8.12.5/8.12.5) with ESMTP id g99GwcpL029518 for ; Wed, 9 Oct 2002 18:58:38 +0200 (MEST) Original-Received: (from root@localhost) by mailserver.adm.unipi.it (8.12.5/8.12.5/Submit) id g99Gwbdc029504; Wed, 9 Oct 2002 18:58:37 +0200 (MEST) Original-To: bug-gnu-emacs@gnu.org X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3671 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3671 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.1 (sparc-sun-solaris2.8, X toolkit) of 2002-10-08 on mailserver Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I am not knowledgeable about this platform, but here Emacs has a serious and dangerous bug. When running as root (did not try as a normal user) if one does: M-x delete-file RET Emacs deletes the current directory! I suspect that this is not a recursive deletion, rather I think that it simply unlinks it, leaving all the files there but unreachable, because the operation is instantaneous and the directory I lost was the whole Pyhton source tree, so it cannot have recursively deleted it in a few tenths of second. Recent input: ESC O A ESC O A ESC O A ESC O B ESC O A ESC O A ESC O A ESC O A C-g p w d RET m k d i r SPC a RET c d SPC a RET ESC x d e l e t e SPC f i SPC RET RET c d SPC . . RET ESC p ESC p ESC p RET c d SPC a RET > b RET l s RET ESC x ESC O A RET RET ESC x r e p o r t - e m TAB RET Recent messages: /usr/local/src call-interactively: Quit repeat-complex-command: Quit /usr/local/src/a /usr/local/src History item: 1 History item: 2 History item: 3 /usr/local/src/a Loading emacsbug...done