Hello,

Wget 1.25.0 seems to be exhibiting an issue on my Windows 10 systems.


ISSUE
Files acquired with wget and saved to an NTFS volume have ACE entries that
are
not in canonical order.

ENVIRONMENT
Windows 10 22H2 (19045.5487)
CYGWIN_NT-10.0-19045 X299 3.5.7-1.x86_64 2025-01-29 19:46 UTC x86_64 Cygwin
GNU Wget 1.25.0 built on cygwin.

STEPS TO REPRODUCE

#1 Open a new command interpreter (cmd.exe).

#2 Change the directory to a folder on an NTFS volume.

#3 Execute the command 'wget https://aka.ms/vs/15/release/vs_Enterprise.exe
'.

#4 Execute the command 'icacls vs_Enterprise.exe /verify'.
   The output should read "vs_Enterprise.exe: Ace entries not in canonical
order."

   Note that vs_Enterprise.exe can not be run from the command interpreter
("Access is
   denied.") or Windows Explorer ("Windows cannot access the specified
device, path
   or file. You may not have the appropriate permissions to access the
item.").

WORKAROUNDS

#1 Have wget save files to a FAT32 or exFAT volume.

#2 Repair vs_Enterprise.exe's DACL by executing the command 'icacls
vs_Enterprise.exe /reset'.
   Using the command 'icacls vs_Enterprise.exe' before and afterward, it
can be noted that the the
   DACL will be changed from:

      NULL SID:(DENY)(Rc,S,WEA,X,DC)
      M0041\x:(R,W,D,WDAC,WO)
      M0041\None:(DENY)(S,X)
      NT AUTHORITY\Authenticated Users:(DENY)(S,X)
      NT AUTHORITY\SYSTEM:(DENY)(S,X)
      BUILTIN\Administrators:(DENY)(S,X)
      BUILTIN\Users:(DENY)(S,X)
      M0041\None:(RX)
      NT AUTHORITY\Authenticated Users:(RX,W)
      NT AUTHORITY\SYSTEM:(RX,W)
      BUILTIN\Administrators:(RX,W)
      BUILTIN\Users:(RX)
      Everyone:(R)

   to:
      BUILTIN\Administrators:(I)(F)
      NT AUTHORITY\SYSTEM:(I)(F)
      NT AUTHORITY\Authenticated Users:(I)(M)
      BUILTIN\Users:(I)(RX)

ADDITIONAL NOTES

#1 This issue is also exhibited on a relatively 'clean' Windows 10 virtual
machine.

#2 This issue occurs for several other files/URLs that I have recently
tested.

A.J.

Reply via email to