• Vincent Vanackere's avatar
    syscall : add ProcAttr field to pass an unescaped command line on windows · f18a4e96
    Vincent Vanackere authored
    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
    f18a4e96
Name
Last commit
Last update
..
Makefile Loading commit data...
asm_darwin_386.s Loading commit data...
asm_darwin_amd64.s Loading commit data...
asm_freebsd_386.s Loading commit data...
asm_freebsd_amd64.s Loading commit data...
asm_linux_386.s Loading commit data...
asm_linux_amd64.s Loading commit data...
asm_linux_arm.s Loading commit data...
asm_plan9_386.s Loading commit data...
asm_windows_386.s Loading commit data...
exec_plan9.go Loading commit data...
exec_unix.go Loading commit data...
exec_windows.go Loading commit data...
mkall.sh Loading commit data...
mkerrors.sh Loading commit data...
mkerrors_windows.sh Loading commit data...
mksyscall.pl Loading commit data...
mksyscall_windows.pl Loading commit data...
mksysnum_darwin.pl Loading commit data...
mksysnum_freebsd.pl Loading commit data...
mksysnum_linux.pl Loading commit data...
mksysnum_plan9.sh Loading commit data...
netlink_linux.go Loading commit data...
route_bsd.go Loading commit data...
str.go Loading commit data...
syscall.go Loading commit data...
syscall_386.go Loading commit data...
syscall_amd64.go Loading commit data...
syscall_arm.go Loading commit data...
syscall_bsd.go Loading commit data...
syscall_darwin.go Loading commit data...
syscall_darwin_386.go Loading commit data...
syscall_darwin_amd64.go Loading commit data...
syscall_freebsd.go Loading commit data...
syscall_freebsd_386.go Loading commit data...
syscall_freebsd_amd64.go Loading commit data...
syscall_linux.go Loading commit data...
syscall_linux_386.go Loading commit data...
syscall_linux_amd64.go Loading commit data...
syscall_linux_arm.go Loading commit data...
syscall_plan9.go Loading commit data...
syscall_plan9_386.go Loading commit data...
syscall_unix.go Loading commit data...
syscall_windows.go Loading commit data...
syscall_windows_386.go Loading commit data...
types_darwin.c Loading commit data...
types_freebsd.c Loading commit data...
types_linux.c Loading commit data...
types_plan9.c Loading commit data...
zerrors_darwin_386.go Loading commit data...
zerrors_darwin_amd64.go Loading commit data...
zerrors_freebsd_386.go Loading commit data...
zerrors_freebsd_amd64.go Loading commit data...
zerrors_linux_386.go Loading commit data...
zerrors_linux_amd64.go Loading commit data...
zerrors_linux_arm.go Loading commit data...
zerrors_plan9_386.go Loading commit data...
zerrors_windows_386.go Loading commit data...
zsyscall_darwin_386.go Loading commit data...
zsyscall_darwin_amd64.go Loading commit data...
zsyscall_freebsd_386.go Loading commit data...
zsyscall_freebsd_amd64.go Loading commit data...
zsyscall_linux_386.go Loading commit data...
zsyscall_linux_amd64.go Loading commit data...
zsyscall_linux_arm.go Loading commit data...
zsyscall_plan9_386.go Loading commit data...
zsyscall_windows_386.go Loading commit data...
zsysnum_darwin_386.go Loading commit data...
zsysnum_darwin_amd64.go Loading commit data...
zsysnum_freebsd_386.go Loading commit data...
zsysnum_freebsd_amd64.go Loading commit data...
zsysnum_linux_386.go Loading commit data...
zsysnum_linux_amd64.go Loading commit data...
zsysnum_linux_arm.go Loading commit data...
zsysnum_plan9_386.go Loading commit data...
zsysnum_windows_386.go Loading commit data...
ztypes_darwin_386.go Loading commit data...
ztypes_darwin_amd64.go Loading commit data...
ztypes_freebsd_386.go Loading commit data...
ztypes_freebsd_amd64.go Loading commit data...
ztypes_linux_386.go Loading commit data...
ztypes_linux_amd64.go Loading commit data...
ztypes_linux_arm.go Loading commit data...
ztypes_plan9_386.go Loading commit data...
ztypes_windows_386.go Loading commit data...