TC7rc5 - Directory Tree not correct when creating ..\newdir
Moderators: Hacker, petermad, Stefan2, white
TC7rc5 - Directory Tree not correct when creating ..\newdir
When creating directories it is possible to specify a path including \..\ (parent dir) \...\ (grand parent dir) etc. See also here. However this messes up the Directory Tree (Alt-F10).
While not in the root directory, create a directory called "..\test" and then look at the Directory Tree (Alt-F10).
Also try "...\test" and "....\test" from within a sub directory and from within the root directory.
While not in the root directory, create a directory called "..\test" and then look at the Directory Tree (Alt-F10).
Also try "...\test" and "....\test" from within a sub directory and from within the root directory.
Confirmed - here the test directory is shown as a subdirectory to the first directory in the list - not in the root as it should be.While not in the root directory, create a directory called "..\test" and then look at the Directory Tree (Alt-F10).
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Currently the directory name is stored in the tree file as you enter it. I will try to detect and remove groups of "..". I already have such a function in another location.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Mmm.. Changed without testing?
Creating "..\test" and "...\test" from within a sub dir will corrupt the directory tree. See this screen shot.
Creating any directory including a trailing backslash gives similar results.
Creating directories "..\test", "...\test" and "....\test" in the root dir will not show up in the directory tree.
Creating a dir "....\test" from within a sub dir results in a access violation. See this screen shot.
Creating "..\test" and "...\test" from within a sub dir will corrupt the directory tree. See this screen shot.
Creating any directory including a trailing backslash gives similar results.
Creating directories "..\test", "...\test" and "....\test" in the root dir will not show up in the directory tree.
Creating a dir "....\test" from within a sub dir results in a access violation. See this screen shot.
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I don't know WHAT you did, but I cannot reproduce your findings.
..\test is supported and works fine here!
...\test isn't currently supported - I get an error here.
..\test is supported and works fine here!
...\test isn't currently supported - I get an error here.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Nothing special. Just what I said.ghisler(Author) wrote:I don't know WHAT you did, but I cannot reproduce your findings.
I checked again.
1) I verified the TC 7.0 download file using the md5-file.
2) I unpacked the cab-file in a new dir.
3) I ran TC with parameters so TC would use ini-files in the directory where I unpacked TC.
4) I enabled the option to show hidden files.
5) I deleted "c:\treeinfo.wc".
6) I created a directory "a".
7) I pressed ALt-F10. A correct c:\treeinfo.wc file was created.
8) I closed the Tree Window.
9) I created a directory "a2". A corrupt line was added to c:\treeinfo.wc.
10) I pressed ALt-F10. Tree is corrupt.
11) I repeated step 8-10 creating directories "a3", "a4" and "a5". The contents of the first lines of c:\treeinfo.wc can be seen in this screen shot.
12) I changed directory to directory "a".
13) I created a directory "....\b" (4 dots!). The access violation error occurs!
OS: Windows 98
I can not confirm that - using your recipe.
9) I get a correct a2 entry in the treeinfo.wc file
10) My tree is OK
11) I get this in my treeinfo.wc file
13) I get this message:
9) I get a correct a2 entry in the treeinfo.wc file
10) My tree is OK
11) I get this in my treeinfo.wc file
Code: Select all
[a]
[a2]
[a3]
[a4]
[a5]
Testet with TC7final, Win XP SP2 on FAT32---------------------------
Total Commander
---------------------------
Error: Directory [....\b]
already exists!
Please specify a different name.
---------------------------
OK
---------------------------
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I couldn't reproduce it so far, but found a problem with renaming folders. I assume that the problems are releated, so I will try to create a fix for TC 7.01.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I don't get any access violation, just an error that the directory couldn't be created.Still the access violation error when creating "c:\temp\....\newdir".
Why should ANYONE want to do such a thing?Still no entry in treeinfo.wc when creating "..\newdir" or "...\newdir" etc when you are in the root dir.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
This action creates two new directories in the c: root.Still the access violation error when creating "c:\temp\....\newdir".
C:\Temp and C:\newdir
when performed on Windows 95.
On Windows XP I get the message that the directory already exists (a directory c:\newdir doesn't exist). Only c:\Temp is created.
Message on Windows XP:
Code: Select all
---------------------------
Total Commander
---------------------------
Fehler: Verzeichnis [c:\temp\....\newdir]
existiert bereits!
Bitte geben Sie einen anderen Namen an.
---------------------------
OK
---------------------------
Last edited by Lefteous on 2007-06-22, 09:00 UTC, edited 1 time in total.
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
"newdir" is not created here on Windows 2000. Maybe another new misfeature of Windows XP?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I see - the crash must be in Windows 98's implementation of CreateDirectory then. I will try to catch it in the next version. Btw, more than 2 dots in a row are a Unix-Thing, Windows doesn't seem to handle them anyway. Therefore normal users shouldn't usually enter such an invalid path.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com