]> Cypherpunks repositories - gostls13.git/commit
syscall : add ProcAttr field to pass an unescaped command line on windows
authorVincent Vanackere <vincent.vanackere@gmail.com>
Tue, 31 May 2011 14:21:38 +0000 (10:21 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 31 May 2011 14:21:38 +0000 (10:21 -0400)
commitf18a4e9609aac3aa83d40920c12b9b45f9376aea
treeb92f7e4e8e27f8e224e5427ee02e1e7bc7c3175c
parentc4206cb231e02380b68f6e954014cdf3533196d5
syscall : add ProcAttr field to pass an unescaped command line on windows

On windows, the command line is passed as a single null-terminated string. While the automatic parameter escaping done by syscall.StartProcess works fine with most Windows programs, some applications do their own custom parsing of the command line, in which case the automatic escaping becomes harmful.
This CL adds a new extra CmdLine field to syscall.ProcAttr that will be used as the raw/unescaped command line if not empty.
Fixes #1849.

R=golang-dev, alex.brainman, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4548050
src/pkg/syscall/exec_windows.go