all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Subject: [root@mailserver.adm.unipi.it: Dangerous: delete-file deletes current directory as root!!]
Date: Fri, 11 Oct 2002 00:41:14 -0400	[thread overview]
Message-ID: <E17zrbu-00026F-00@fencepost.gnu.org> (raw)

Can someone fix this?

------- Start of forwarded message -------
Envelope-to: rms@gnu.org
Delivery-date: Wed, 09 Oct 2002 13:05:22 -0400
From: Super-User <root@mailserver.adm.unipi.it>
To: bug-gnu-emacs@gnu.org
Subject: Dangerous: delete-file deletes current directory as root!!
Reply-To: pot@gnu.org
X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/)
Sender: bug-gnu-emacs-admin@gnu.org
Date: Wed, 9 Oct 2002 18:58:37 +0200 (MEST)

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


_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

             reply	other threads:[~2002-10-11  4:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-11  4:41 Richard Stallman [this message]
2002-10-11 19:32 ` Dangerous: delete-file deletes current directory as root!! Stefan Monnier
2002-10-11 19:44   ` Kai Großjohann
2002-10-11 23:56   ` Francesco Potorti`
2002-10-12 18:24     ` Stefan Monnier
2002-10-13 17:20       ` Francesco Potorti`
2002-10-13 22:47       ` Richard Stallman
2002-10-12 15:45   ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E17zrbu-00026F-00@fencepost.gnu.org \
    --to=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.