Re: recursive file deleting with '..' directory selected

  • From: <tpgww@xxxxxxxxxxx>
  • To: emelfm2@xxxxxxxxxxxxx
  • Date: Wed, 23 Aug 2006 10:43:50 -0400

On Tue, 22 Aug 2006 16:56:53 +0200 (CEST)
Jan HutaÅ <JHutar@xxxxxxxxx> wrote:

> Is it bug or a feature?:
> 
> This happend to me and won't repeat/test it again:
> 1/ i switched on "configuration > panes > show parent directory entry
> '..' in file lists" 2/ selected all Ctrl+A in some folder
> 3/ Delete to delete selected
> 4/ e2 started to recursively delete *realy* everything (files parent
> directory...)
> 
> I thing it is quite dangerous behaviour.
Sure is !

BUT - a selected ".." item in a file list is not logged and passed to functions 
which perform tasks like deletion. To double-check this, I've just stepped 
through the process you described, using a debugger, and found no attempt to 
process a ".." entry.

Which raises the question - what is happening in your circumstances ?

You are right to be wary, but can you please do a test? Create a discardable 
directory with a child directory, which in turn has a few items. Make sure the 
delete-confirmation option is in force. Do your deletion of all the contents of 
that child directory.

Regards
Tom


--
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: