Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(76)

Issue 4548050: code review 4548050: syscall : add ProcAttr field to pass an unescaped comma... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 12 months ago by vincent.vanackere
Modified:
13 years, 11 months ago
CC:
golang-dev
Visibility:
Public.

Description

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 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/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -6 lines) Patch
M src/pkg/syscall/exec_windows.go View 1 2 3 4 5 6 5 chunks +16 lines, -6 lines 0 comments Download

Messages

Total messages: 12
vincent.vanackere
Hello golang-dev@googlegroups.com, alex.brainman@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 12 months ago (2011-05-19 12:18:38 UTC) #1
brainman
On 2011/05/19 12:18:38, vincent.vanackere wrote: > Hello mailto:golang-dev@googlegroups.com, mailto:alex.brainman@gmail.com (cc: > mailto:golang-dev@googlegroups.com), > > I'd ...
13 years, 12 months ago (2011-05-19 12:56:50 UTC) #2
vincent.vanackere
Done at http://code.google.com/p/go/issues/detail?id=1849 The issue is quite simple : command line parsing is the responsability ...
13 years, 12 months ago (2011-05-19 14:11:27 UTC) #3
vincent.vanackere
Hello golang-dev@googlegroups.com, alex.brainman@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2011-05-24 21:36:28 UTC) #4
brainman
Let's see if we can get this moving. Alex http://codereview.appspot.com/4548050/diff/1003/src/pkg/syscall/exec_windows.go File src/pkg/syscall/exec_windows.go (right): http://codereview.appspot.com/4548050/diff/1003/src/pkg/syscall/exec_windows.go#newcode37 src/pkg/syscall/exec_windows.go:37: ...
13 years, 11 months ago (2011-05-30 02:21:13 UTC) #5
vincent.vanackere
http://codereview.appspot.com/4548050/diff/1003/src/pkg/syscall/exec_windows.go File src/pkg/syscall/exec_windows.go (right): http://codereview.appspot.com/4548050/diff/1003/src/pkg/syscall/exec_windows.go#newcode37 src/pkg/syscall/exec_windows.go:37: } On 2011/05/30 02:21:13, brainman wrote: > I think ...
13 years, 11 months ago (2011-05-30 09:50:55 UTC) #6
vincent.vanackere
Hello golang-dev@googlegroups.com, alex.brainman@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2011-05-30 11:07:26 UTC) #7
bradfitz
This CL I'm cool with. I just don't want syscall internals to bleed up into ...
13 years, 11 months ago (2011-05-30 16:47:50 UTC) #8
brainman
LGTM
13 years, 11 months ago (2011-05-31 02:02:01 UTC) #9
vincent.vanackere
PTAL http://codereview.appspot.com/4548050/diff/7003/src/pkg/syscall/exec_windows.go File src/pkg/syscall/exec_windows.go (right): http://codereview.appspot.com/4548050/diff/7003/src/pkg/syscall/exec_windows.go#newcode225 src/pkg/syscall/exec_windows.go:225: CmdLine string On 2011/05/30 16:47:50, bradfitz wrote: > ...
13 years, 11 months ago (2011-05-31 08:11:56 UTC) #10
rsc
LGTM
13 years, 11 months ago (2011-05-31 14:21:32 UTC) #11
rsc
13 years, 11 months ago (2011-05-31 14:22:46 UTC) #12
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b