Descriptionsyscall : 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 issue 1849.
Patch Set 1 #Patch Set 2 : diff -r 7fcecec9103c https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 7fcecec9103c https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 681ae5d35602 https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 5 : diff -r 74fc11b9e9a8 https://go.googlecode.com/hg/ #Patch Set 6 : diff -r 5bf3a11773f7 https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 7 : diff -r b0c691bce96b https://go.googlecode.com/hg/ #MessagesTotal messages: 12
|