[Bug 39932] New: bat-script with quotes cann't be called using CreateProcess

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jan 5 15:51:22 CST 2016


https://bugs.winehq.org/show_bug.cgi?id=39932

            Bug ID: 39932
           Summary: bat-script with quotes cann't be called using
                    CreateProcess
           Product: Wine
           Version: 1.9.0
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: kernel32
          Assignee: wine-bugs at winehq.org
          Reporter: andrej.skvortzov at gmail.com
      Distribution: ---

Created attachment 53340
  --> https://bugs.winehq.org/attachment.cgi?id=53340
executable with source code to reproduce the problem

This problem exists in software to configure HMI panels from OWEN and Xinje. 

http://www.owen.ru/catalog/graficheskaya_panel_operatora_s_sensornim_upravleniem_owen_sp270/93620873
(Russian)

To reproduce this problem easily minimal test program is created. See attached
archive cmd_call_batch.tar.xz.

Here are technical details of the problem. To appear following conditions need
to be met: 
- bat-script is called using CreateProcess
- name of bat-script is quoted
- some parameters of bat-scrits are quoted.

For example,

"test2.bat" "param1" param2

wine runs bat-script using cmd. 
cmd /c "test2.bat" "param1" param2
On Windows cmd fails if name of bat-script and parameters both are quoted. To
avoid this problem attached patch always removes quotes from bat-script's name
before cmd is called.

-- 
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.



More information about the wine-bugs mailing list