https://bugs.winehq.org/show_bug.cgi?id=55097
Bug ID: 55097 Summary: cmd.exe does not handle PATH with leading or sequential semicolons Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: loothelion@nvidia.com Distribution: ---
Created attachment 74657 --> https://bugs.winehq.org/attachment.cgi?id=74657 Repro program for PATH separator bug
Wine's cmd.exe doesn't properly handle PATH values with: - A leading semicolon - Two sequential semicolons
Windows handles this fine, as shown in the attached test program. Simply extract and then run test.bat from cmd.exe
Output looks like such in wine: ``` Z:\home\loothelion\repos\wine-path-bug>test.bat "Expecting failure (no print)" Can't recognize 'test.bat' as an internal or external command, or batch script. "Expecting SUCCESS" "PATH=Z:\home\loothelion\repos\wine-path-bug/a" SUCCESS "Expecting SUCCESS (exposes WINE bug)" "PATH=;Z:\home\loothelion\repos\wine-path-bug/a" "Expecting SUCCESS" "PATH=D:/;Z:\home\loothelion\repos\wine-path-bug/a" SUCCESS "Expecting SUCCESS (exposes WINE bug)" "PATH=D:/;;Z:\home\loothelion\repos\wine-path-bug/a" ```
I have a fix for this that I plan to send for review shortly, as well as a new test case to protect against regressions.
https://bugs.winehq.org/show_bug.cgi?id=55097
Liam Middlebrook loothelion@nvidia.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |0911d462f977aef1071b59b70cf | |a68398f13663b Resolution|--- |FIXED
--- Comment #1 from Liam Middlebrook loothelion@nvidia.com --- Closing, fixed, added fix SHA1.
https://bugs.winehq.org/show_bug.cgi?id=55097
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.11.
https://bugs.winehq.org/show_bug.cgi?id=55097
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0.x