TC 9.0a: Unpacking directory to the root of a system drive

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

TC 9.0a: Unpacking directory to the root of a system drive

Post by *browny »

This was tried with ordinary Windows computer and with virtualboxes, 32- and 64-bits.

Start TC as a user without elevated rights (not as Administrator), though the user was a member of Administrators group.
In the left pane open an archive with a directory structure.
In the right pane - the root of the system drive.
It would be possible to create a directory in the right pane using F7 key or md command.
It would be possible to unpack (copy) a file from the left pane to the right.

Now select a directory in the acrhive and try to unpack (copy) from left pane to the right.
There would be a messagebox with OK and As Administrator buttons.
Strangely, OK button does nothing; and administrator rights were necessary.

Processmonitor shows a suspicious line with buffer overflow when TC checked access rights.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, currently it's not possible to unpack just directories to the root of the drive. This location is special - it only allows to create folders, not files. TC cannot currently distinguish between the two, and I have no idea how this could be done.

Just create the folder first with F7, then unpack files to it.
Author of Total Commander
https://www.ghisler.com
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Post by *browny »

Corrections to my first post.
1. TC would unpack a file to the root in the same way as a directory - it would request additional permissions.
2. Buffer overflow is not an issue. Just a side effect when the program tries to get the correct size of returned data.

Additional information.
Far and 7-zip file manager would silently extract a directory even for an ordinary user.

Far would always request permissions to unpack a file.
7-zip file manager would silently extract a file for a user with administrative rights (no elevation requested) but would fail otherwise.
Post Reply