From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: Dangerous: delete-file deletes current directory as root!! Date: Fri, 11 Oct 2002 21:44:11 +0200 Organization: University of Dortmund, Germany Sender: emacs-devel-admin@gnu.org Message-ID: <874rbsep6c.fsf@crybaby.cs.uni-dortmund.de> References: <200210111932.g9BJWc116729@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034365606 27735 127.0.0.1 (11 Oct 2002 19:46:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 11 Oct 2002 19:46:46 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1805kC-0007DD-00 for ; Fri, 11 Oct 2002 21:46:44 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 1806ZM-0003EZ-00 for ; Fri, 11 Oct 2002 22:39:37 +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 1805ie-0008Pm-00; Fri, 11 Oct 2002 15:45:08 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 1805ho-0007mi-00 for emacs-devel@gnu.org; Fri, 11 Oct 2002 15:44:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 1805hn-0007mX-00 for emacs-devel@gnu.org; Fri, 11 Oct 2002 15:44:16 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10) id 1805hm-0007mT-00 for emacs-devel@gnu.org; Fri, 11 Oct 2002 15:44:15 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1805h7-000723-00 for ; Fri, 11 Oct 2002 21:43:33 +0200 Original-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1805h7-00071t-00 for ; Fri, 11 Oct 2002 21:43:33 +0200 Original-Path: not-for-mail Original-Lines: 12 Original-NNTP-Posting-Host: pd951f77c.dip.t-dialin.net Original-X-Trace: main.gmane.org 1034365413 25020 217.81.247.124 (11 Oct 2002 19:43:33 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Fri, 11 Oct 2002 19:43:33 +0000 (UTC) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:Rfm14YbbFVFFGHBaY+GUcLkmI4U= Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8533 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8533 "Stefan Monnier" writes: > Now, I'm not sure what `delete-file' should do. Should it mimic `unlink' > or should it first check that it is not called on a directory ? I think that it is counter-intuitive that delete-file deletes a directory. Even as root. How about asking the user if the file is a directory and the function is called interactively? kai -- ~/.signature is: umop ap!sdn (Frank Nobis)