Page 3 of 3

Re: Integrate NTFS Streams handling into TC

Posted: 2023-10-24, 12:03 UTC
by Hacker
serjayes,
I didn't know how I could navigate to "the Section 4.b".
Total Commander Help Index
1. Introduction
[...]
4. Configuration and switches
a. Command line parameters
b. INI-File settings: wincmd.ini (1: Configuration A-M, 2: N-Z, 3: the rest), wcx_ftp.ini (for FTP)
[...]
Total Commander is Copyright © 1993-2023 by Christian Ghisler, Ghisler Software GmbH
All mentioned Trademarks and Copyrights belong to their respective owners.
HTH
Roman

Re: Integrate NTFS Streams handling into TC

Posted: 2023-10-24, 14:03 UTC
by Dalai
serjayes wrote: 2023-10-24, 11:24 UTCI didn't know how I could navigate to "the Section 4.b". Now, thinking more, I guess you count the "books" displayed.
No need to count anything. The sections are shown in TC help's main page (help index). Each section has its number and each subsection has a letter.
and I still don't know what exactly that entry is supposed to control. Is "enabled" (1) only about copying out of the packed files using local packer?
Yes, that's what I concluded as well. The documentation of this setting is very lacking because it doesn't mention archives at all.
How does the feature which can be enabled or disabled actually work? Is there a description of that somewhere? What's affected and what isn't?
I read it as follows:

Code: Select all

0: disabled
1: enabled, when unpacking files internally or via plugins, copy "Zone.Identifier" data stream from archive to unpacked files
2: Internet http
4: Anonymous ftp
8: ftp with login
16: Intranet-http
The added text can be found in history.txt. But there are still details missing: Does HTTPS count as HTTP? Is opening a new FTP connection with Ctrl+N and specifying a username in the form of ftp://user@server considered as "ftp with login"? Or does "ftp with login" apply only to saved FTP connections (Ctrl+F)? How does TC differentiate between Internet and Intranet? I guess the latter can be answered by saying "it's taken from the OS (Internet Explorer) settings", but it's not clear enough and leaving users guessing is bad.

Regards
Dalai

Re: Integrate NTFS Streams handling into TC

Posted: 2023-10-24, 14:29 UTC
by ghisler(Author)
Does HTTPS count as HTTP?
Yes, amd FTPS counts as FTP.
FTP connection with Ctrl+N and specifying a username
That's not anonymous, so it's FTP with login.
How does TC differentiate between Internet and Intranet?
Local IPv4 addresses are 127.0.0.1, 10.*.*.*, 192.168.*.* and 172.16.*.* to 172.30.*.*.
IPv6 has similar ranges.

Re: Integrate NTFS Streams handling into TC

Posted: 2023-10-24, 14:32 UTC
by serjayes
Thanks *Hacker and *Dalai: I clearly haven't expected to see any numbers on the right, seeing just unnumbered items on the left. I guess now, adding numbers in the left "tree" would break something.

*Dalai many thanks for the explanation based on the history.txt.

Now did I understand it correctly (if somebody knows, can guess or can try on a few examples, I don't have such files at the moment and don't know how to make them fast):

Is it, for the origins of the files like "Internet http" etc, the setting also about just the actions which can happening during the extraction from an archive with such an origin, that is, is the whole "WantZoneData" entry there only to, in all cases, control only the extraction from the archives?

Re: Integrate NTFS Streams handling into TC

Posted: 2023-10-24, 14:50 UTC
by Dalai
serjayes wrote: 2023-10-24, 14:32 UTCthat is, is the whole "WantZoneData" entry there only to, in all cases, control only the extraction from the archives?
No, the setting isn't just about extracting files from archives. It's also about other files downloaded from (external) sources mentioned in the help text. In TC 9.x and older, such downloads didn't get such zone information, but in TC 10 and newer they do by default. Windows shows an additional warning/confirmation dialog for (executable) files from a different "zone" before actually executing them.

But you can limit the setting to apply only to extracted files by setting its value to 1.

2ghisler(Author)
Thanks for the explanation. I strongly recommend to add these details to the TC help, alongside the information about extracting files from archives. Maybe like so:

Code: Select all

0: disabled
1: enabled, when unpacking files internally or via plugins, copy "Zone.Identifier" data stream from archive to unpacked files
2: Internet http(s)
4: Anonymous ftp(s)
8: ftp(s) with login; includes new connections made in the form ftp://user@server
16: Intranet-http(s)
Regards
Dalai

Re: Integrate NTFS Streams handling into TC

Posted: 2023-10-26, 14:37 UTC
by petermad
2Dalai

here how it is described in TC 11.02rc4
Help wrote:WantZoneData=7 Stores Zone Transfer data in NTFS streams:
1: enabled, when copying or unpacking files internally or via plugins, copy "Zone.Identifier" data stream from source/archive to target files
2: Internet http(s)
4: Anonymous ftp(s)
8: ftp(s) with login (also new connections with user name)
16: Intranet-http(s)
Isn't that close enough to what you suggest?

I suggest that the first line is changed to:
WantZoneData=7 Stores Zone Transfer data in NTFS streams. Sum of:

Re: Integrate NTFS Streams handling into TC

Posted: 2023-10-26, 15:11 UTC
by Dalai
2petermad
Yes, this is fine. And I agree with the "sum of" detail.

Regards
Dalai

Re: Integrate NTFS Streams handling into TC

Posted: 2023-10-26, 16:32 UTC
by white
petermad wrote: 2023-10-26, 14:37 UTC here how it is described in TC 11.02rc4
Help wrote:WantZoneData=7 Stores Zone Transfer data in NTFS streams:
1: enabled, when copying or unpacking files internally or via plugins, copy "Zone.Identifier" data stream from source/archive
What is meant by "copying" and "from source". It doesn't seem right.