emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dangerous: delete-file deletes current directory as root!!


From: Kai Großjohann
Subject: Re: Dangerous: delete-file deletes current directory as root!!
Date: Fri, 11 Oct 2002 21:44:11 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

"Stefan Monnier" <monnier+gnu/address@hidden> 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)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]