TC overwrites w/o ask on unpack to some folders
Moderators: Hacker, petermad, Stefan2, white
TC overwrites w/o ask on unpack to some folders
You can test it with C:\Windows\Temp folder, it doesn't allow users to list files but allows to create/modify existing ones.
Using user account try to copy any file into C:\Windows\Temp folder (you may need 'as admin' button to enter folder before). And then try to copy file with same name into it - TC asks for overwrite. Now try to unpack file with same name into C:\Windows\Temp - TC overwrites w/o ask!
It is expected that TC will ask user if he wants to overwrite file.
Same behaviour occurs on WXP and W7.
Using user account try to copy any file into C:\Windows\Temp folder (you may need 'as admin' button to enter folder before). And then try to copy file with same name into it - TC asks for overwrite. Now try to unpack file with same name into C:\Windows\Temp - TC overwrites w/o ask!
It is expected that TC will ask user if he wants to overwrite file.
Same behaviour occurs on WXP and W7.
Re: TC overwrites w/o ask on unpack to some folders
That's not true. I can list files too. Maybe because i'm admin...MVV wrote:You can test it with C:\Windows\Temp folder, it doesn't allow users to list files but allows to create/modify existing ones.
TC's unpack dialog has an "Overwrite existing files" option.MVV wrote:Now try to unpack file with same name into C:\Windows\Temp - TC overwrites w/o ask!

- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Re: TC overwrites w/o ask on unpack to some folders
wanderer wrote:That's not true. I can list files too. Maybe because i'm admin...
Admins just can list files so bug is not visible. You need limited account.MVV wrote:You can test it with C:\Windows\Temp folder, it doesn't allow users to list files but allows to create/modify existing ones.
...
Using user account try to copy any file into C:\Windows\Temp folder (you may need 'as admin' button to enter folder before).
As I wrote, I do both tests one by other and don't change any options, and when I unpack to one folder TC asks to overwrite but when I unpack to another folder TC doesn't ask.wanderer wrote:TC's unpack dialog has an "Overwrite existing files" option.
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I'm sorry, it's currently not possible to handle that situation of a folder where reading is forbidden but writing allowed. Why? TC has to check before unpacking a file whether the target exists or not. This is unfortunately not possible when reading from the target is impossible.
Edit: It seems that there is a way to check it - via CreateFile (for reading). TC uses FindFirstFile because it's much faster, but I can revert to CreateFile if the access is denied.
Edit: It seems that there is a way to check it - via CreateFile (for reading). TC uses FindFirstFile because it's much faster, but I can revert to CreateFile if the access is denied.
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'm using all 3, in a mix which has been proven to work in many situations (except for the above). I will not change this now just before the release, sorry.
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:
No, of course I fix it already in TC 7.55 - it's easy, just check with CreateFile when FindFirstFile returns error 5 (access denied), just as I do now in case of error 0 (file found).
But I will not switch to GetFileAttributes instead of FindFirstFile, this could have unpredictable results.
But I will not switch to GetFileAttributes instead of FindFirstFile, this could have unpredictable results.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Hm, interesting. Sounds similar to the bug I reported a while back where in some cases TC will overwrite a file without prompting when a CTRL+S filter is active in the destination folder when you do a file move from one folder to another. Obviously not the same circumstances as in this case, but the same effect - the file overwriting dialog is suppressed. Oh well, bugs happen I suppose.
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
2romulous
Unfortunately I could not reproduce your problem. It's completely unrelated, because TC doesn't look in the target panel list whether a file exists or not. TC looks directly on the harddisk, so the state of the Ctrl+S function doesn't matter.
Unfortunately I could not reproduce your problem. It's completely unrelated, because TC doesn't look in the target panel list whether a file exists or not. TC looks directly on the harddisk, so the state of the Ctrl+S function doesn't matter.
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: