exec does not handle app execution aliases on Windows
Closed / Fixed4f0b5767acbec00396762e6a3a6d10f59d2be778Created 2 years agoUpdated 2 years ago
Descriptionmarkdown2025-01-26 03:20:15
Reported by Julian Noble on the chat:
JulianNoble › exec is not so nice on windows.. some modern apps seem to be installed as reparse points - which tcl doesn't seem to handle
[22:08] JulianNoble › winget being a notable example
Proposed fix in bug-4f0b5767ac
Referenced by5
222f6ff309Merge fix for [4f0b5767ac]. Exec of App Execution Aliases on Windows check-in2025-01-28 05:43:47bc9227d33fCherry pick fix for [4f0b5767ac]. Exec of App Execution Aliases on Windows check-in2025-01-28 05:24:52b0d73da3dfFix [4f0b5767ac]. Exec of App Execution Aliases on Windows check-in2025-01-28 04:56:38311137c977Added test for [4f0b5767ac]. check-in2025-01-26 04:39:195778698fd9Proposed fix [4f0b5767ac]. exec of App Execution Alias check-in2025-01-26 04:24:51
apnadkarni Ticket [4f0b5767ac]: 3 changes
[History diff]2025-01-26 04:46:48
apnadkarniplain2025-01-27 17:05:00
Awaiting approval to merge into trunk.
apnadkarniplain2025-01-27 17:05:35
Forgot to note - passed github actions CI.
oehharwiki2025-01-27 18:12:41
Great work! Please merge. Thanks, Harald
apnadkarniplain2025-01-28 05:00:30
Thanks, Harald. @sebres, saw your comment on the chat. However, the MSDN docs say FILE_FLAG_OPEN_REPARSE_POINT is ignored for non-reparse points so I don't think checking attr is really necessary. I have no objection if you want to add the check but I don't want to make a change and go through another github CI cycle as I don't believe that check is required. Merged in [b0d73da3df].
chwplain2025-01-29 04:29:32
Could it be that check-in [bc9227d33f] and friends leak a HANDLE for the FILE_ATTRIBUTE_REPARSE_POINT case?
apnadkarniplain2025-01-29 05:41:42
It could indeed be so :-) Fixed now. Tx @chw
Log in (anonymous is fine) to add a comment.