TC crashing with too long paths, created by Shift+F6

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
y
Junior Member
Junior Member
Posts: 14
Joined: 2004-09-14, 15:26 UTC
Location: RF
Contact:

TC crashing with too long paths, created by Shift+F6

Post by *y »

Short description:
Folder renaming does not checking the full path length – so, I cannot create the forbidden path by F7, but I can create it by Shift+F6, and crash the TC.

What we need:
I think, TC should prevent the directory renaming (by Shift+F6) if new path exceeds more than 255 characters.

How I did it:
I've create the very long folder on hard drive.

Code: Select all

D:\0123456789\01234567890123456789012345678901234567890123456789\01234567890123456789012345678901234567890123456789\01234567890123456789012345678901234567890123456789\01234567890123456789012345678901234567890123456789\01234567890123456789\
In this folder, I try to create the "01234567890123456789" subfolder - Total says "Folder is not created". It is right and clear for me - path is longer than 255 bytes. So, I create the subfolder named "1", and then I rename it to "01234567890123456789". As a result, I have successfully create the forbidden path, with the name exceed 255 bytes.

I can't enter to this folder via Total (just nothing happened).
Windows Explorer says : "To long path name"

I cannot delete this path - Total say "Stack overflow" and closes (crash down).

To delete this path, I go up to the root, and rename the root folder "0123456789" to "1" - full path shrinks, become valid, and I successfully delete this branch.

Disk D: is NTFS formatted, no compression, indexing allowed. OS is Win2000 Pro SP4.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

You can assign the root folder with subst to a drive letter, e.g.

Code: Select all

subst y: "d:\0123456789\01234567890123456789012345678901234567890123456789\
01234567890123456789012345678901234567890123456789\
01234567890123456789012345678901234567890123456789\
01234567890123456789012345678901234567890123456789\
01234567890123456789"
Then you could assign all folders in this folder by switching to drive Y:\.

sheepdog
Last edited by Sheepdog on 2005-12-16, 17:22 UTC, edited 1 time in total.
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Please a line break in that code, you are destroying the page layout.

I can reproduce the rename issue with too long path but not the crash, what version are you using on what operating system?

Icfu
This account is for sale
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

There is MAX_PATH constant in Windows
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
y
Junior Member
Junior Member
Posts: 14
Joined: 2004-09-14, 15:26 UTC
Location: RF
Contact:

Re: TC crashing with too long paths, created by Shift+F6

Post by *y »

y wrote:Disk D: is NTFS formatted, no compression, indexing allowed. OS is Win2000 Pro SP4.
I'm using the TC 6.50 Trial.

Program crashes when I tryied to delete the "too long folder", created with Shift+F6.

Image: http://www.qunom.com/store/total_crash.gif (14 KB)
Yuri Nachitov, developer
New file wizard for Total Commander
http://www.qunom.com/nf_tc.htm
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Please try to update to current Version 6.53.

BTW ther is no limitation for the trial version except the 1-2-3 nag screen at start.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Post Reply