FarManager icon indicating copy to clipboard operation
FarManager copied to clipboard

Removal of illegal pathes

Open Danielma0203 opened this issue 1 year ago • 2 comments

Far Manager version

3.0.6161.0

OS version

10.0.19045.3803

Other software

cmd.exe

Steps to reproduce

Crashed when an attempt to remove an illegal path ( "\Temp\36237218...." ) is made. A virus made some copies of itself and put them into folders called "...." within Temp, Far Manager is able to access the copies inside "...." folder but unable to remove - since Windows mis-interpret it as parent directories.

Steps to reproduce:

  1. Make a folder with illegal name "....". Can be done with "mkdir \?\C:\some\place\for\illegal_folder...."
  2. Open Far Manager and locate to the illegal folder
  3. Right click and delete the parent folder of "...."
  4. Program become iresponsive for a moment and soon proceed to crash.

Expected behavior

Delete the illegal folder successfully (Also be done by adding "\?" in front of the directory)

Actual behavior

Unsuccess removal caused by the program keep directing into "...." (If "...." folder is accessed though file explorer it will end up with a loop like "................")

Danielma0203 avatar Dec 27 '23 10:12 Danielma0203

Just use Shift+Del to avoid problem with Recycle Bin.

w17 avatar Dec 27 '23 12:12 w17

@Danielma0203, "right click and delete" is not a recommended way to deal with bad paths: it delegates the work to a plugin that delegates it to the shell, which could behave unpredictably. As mentioned above, Shift+Del should delete such paths without issues.

If you can reproduce the crash (I can't), please share the crash log, we will see if it's fixable.

alabuzhev avatar Dec 27 '23 19:12 alabuzhev