Re: recursive file deleting with '..' directory selected
- From: Jan Hutar <jhutar@xxxxxxxxx>
- To: emelfm2@xxxxxxxxxxxxx
- Date: Sat, 26 Aug 2006 15:08:08 +0200
Hello,
I created a new user and tested it:
home-pok ~ # whoami
root
home-pok ~ # adduser tester
home-pok ~ # su tester
[tester@home-pok root]$ cd
[tester@home-pok ~]$ pwd
/home/tester
[tester@home-pok ~]$ touch file1
[tester@home-pok ~]$ touch file2
[tester@home-pok ~]$ emelfm2
Settings > Panes > show parent directory entry '..' in each file list > OK
Move something into trash
Bookmarks > trash # I wanted to empty trash full of warious files
Ctrl+A, Delete, Yes to all
from output pane:
Cannot delete /home/tester2/.local/share/Trash/files/.. - nenà souborem ani
adresÃÅem
Cannot access /home/tester2/.local/share/Trash/files/, going to
/home/tester2/.local/share/Trash instead
Hmm, does not happened what before. But, at least, dir
/home/tester2/.local/share/Trash/files/ were deleted :)
But I'm quite sure that when I saw and realized what is my pc doing (high load,
probably preparing to delete my files) i killed (in hurry and death in my eyes)
e2 and load went back. I lost only some settings (~/.* dirs). Nothing serious.
Thang god for so slow pc :)
So sorry for useless bugreport :/
Best regards,
pok
> 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.
--
Jan HutaÅ -=#
email: jhutar@xxxxxxxxx
web: http://jhutar.ic.cz
--
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.
- References:
- recursive file deleting with '..' directory selected
- From: Jan Hutař
- Re: recursive file deleting with '..' directory selected
- From: tpgww
Other related posts:
- » recursive file deleting with '..' directory selected
- » Re: recursive file deleting with '..' directory selected
- » Re: recursive file deleting with '..' directory selected
- recursive file deleting with '..' directory selected
- From: Jan Hutař
- Re: recursive file deleting with '..' directory selected
- From: tpgww