[Bug 55097] New: cmd.exe does not handle PATH with leading or sequential semicolons
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(a)winehq.org Reporter: loothelion(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55097 Liam Middlebrook <loothelion(a)nvidia.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |0911d462f977aef1071b59b70cf | |a68398f13663b Resolution|--- |FIXED --- Comment #1 from Liam Middlebrook <loothelion(a)nvidia.com> --- Closing, fixed, added fix SHA1. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55097 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 8.11. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55097 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0.x -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=55097 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|8.0.x |--- -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla