1
0
mirror of https://github.com/golang/go synced 2024-10-04 14:31:21 -06:00
go/src/pkg/syscall
Vincent Vanackere f18a4e9609 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
2011-05-31 10:21:38 -04:00
..
asm_darwin_386.s syscall: add Mmap, Munmap on Linux, FreeBSD, OS X 2011-04-06 17:52:02 -04:00
asm_darwin_amd64.s syscall: Permit non-blocking syscalls. 2011-03-16 19:03:01 -07:00
asm_freebsd_386.s syscall: freebsd/386 Syscall9 (fix build) 2011-04-07 15:35:04 -04:00
asm_freebsd_amd64.s syscall: Permit non-blocking syscalls. 2011-03-16 19:03:01 -07:00
asm_linux_386.s syscall: make Rawsyscall6 pass 6th arg on linux/386 2011-04-01 22:26:57 -04:00
asm_linux_amd64.s syscall: Permit non-blocking syscalls. 2011-03-16 19:03:01 -07:00
asm_linux_arm.s syscall: Permit non-blocking syscalls. 2011-03-16 19:03:01 -07:00
asm_plan9_386.s R=rsc, brainman, ality, r2, r 2011-04-02 14:24:03 -07:00
asm_windows_386.s rename GOOS=mingw to GOOS=windows 2010-04-29 23:45:14 -07:00
exec_plan9.go syscall: fix StartProcess in Plan 9 2011-04-11 12:39:53 -07:00
exec_unix.go syscall: StartProcess Chroot and Credential. 2011-03-29 14:29:22 -04:00
exec_windows.go syscall : add ProcAttr field to pass an unescaped command line on windows 2011-05-31 10:21:38 -04:00
Makefile syscall: add routing messages support for BSD variants 2011-05-26 20:02:03 -04:00
mkall.sh syscall: adjust freebsd syscalls.master URL properly 2011-05-18 13:28:01 -04:00
mkerrors_windows.sh syscall: include all, even duplictate, invented error messages 2011-01-20 21:24:15 +11:00
mkerrors.sh syscall: add routing messages support for BSD variants 2011-05-26 20:02:03 -04:00
mksyscall_windows.pl syscall: fix bug in mksyscall_windows.pl 2011-05-08 16:32:00 +10:00
mksyscall.pl syscall: add Mmap, Munmap on Linux, FreeBSD, OS X 2011-04-06 17:52:02 -04:00
mksysnum_darwin.pl syscall: rename from .sh to .pl, because these files are in Perl. 2011-03-21 13:02:10 -07:00
mksysnum_freebsd.pl syscall: rename from .sh to .pl, because these files are in Perl. 2011-03-21 13:02:10 -07:00
mksysnum_linux.pl syscall: rename from .sh to .pl, because these files are in Perl. 2011-03-21 13:02:10 -07:00
mksysnum_plan9.sh R=rsc, brainman, ality, r2, r 2011-04-02 14:24:03 -07:00
netlink_linux.go syscall: add routing messages support for Linux 2011-05-26 17:04:58 -04:00
route_bsd.go pkg: spelling tweaks, I-Z 2011-05-30 18:02:59 +10:00
str.go R=rsc, brainman, ality, r2, r 2011-04-02 14:24:03 -07:00
syscall_386.go syscall: add const ARCH, analogous to OS 2010-03-16 18:45:48 -07:00
syscall_amd64.go syscall: add const ARCH, analogous to OS 2010-03-16 18:45:48 -07:00
syscall_arm.go syscall: add const ARCH, analogous to OS 2010-03-16 18:45:48 -07:00
syscall_bsd.go syscall: add routing messages support for BSD variants 2011-05-26 20:02:03 -04:00
syscall_darwin_386.go syscall: add Mmap, Munmap on Linux, FreeBSD, OS X 2011-04-06 17:52:02 -04:00
syscall_darwin_amd64.go syscall: Permit non-blocking syscalls. 2011-03-16 19:03:01 -07:00
syscall_darwin.go syscall: sendfile 2011-05-20 11:51:31 -07:00
syscall_freebsd_386.go syscall: fix freebsd/386 again 2011-04-07 15:44:10 -04:00
syscall_freebsd_amd64.go 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
syscall_freebsd.go syscall: sendfile 2011-05-20 11:51:31 -07:00
syscall_linux_386.go syscall: sendfile 2011-05-20 11:51:31 -07:00
syscall_linux_amd64.go syscall: sendfile 2011-05-20 11:51:31 -07:00
syscall_linux_arm.go syscall: sendfile 2011-05-20 11:51:31 -07:00
syscall_linux.go syscall: add IPv6 scope zone ID support 2011-05-22 10:09:07 -07:00
syscall_plan9_386.go R=rsc, brainman, ality, r2, r 2011-04-02 14:24:03 -07:00
syscall_plan9.go syscall: sendfile 2011-05-20 11:51:31 -07:00
syscall_unix.go R=rsc, brainman, ality, r2, r 2011-04-02 14:24:03 -07:00
syscall_windows_386.go rename GOOS=mingw to GOOS=windows 2010-04-29 23:45:14 -07:00
syscall_windows.go os: another attempt to handle OpenFile flag parameter properly on Windows 2011-05-27 17:02:24 +10:00
syscall.go src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
types_darwin.c syscall: add BPF support for darwin/386, darwin/amd64 2011-04-21 16:58:20 -04:00
types_freebsd.c syscall: add BPF support for freebsd/386, freebsd/amd64 2011-04-04 15:40:40 -04:00
types_linux.c syscall: add routing messages support for Linux 2011-05-26 17:04:58 -04:00
types_plan9.c R=rsc, brainman, ality, r2, r 2011-04-02 14:24:03 -07:00
zerrors_darwin_386.go syscall: add routing messages support for BSD variants 2011-05-26 20:02:03 -04:00
zerrors_darwin_amd64.go syscall: add routing messages support for BSD variants 2011-05-26 20:02:03 -04:00
zerrors_freebsd_386.go syscall: add routing messages support for BSD variants 2011-05-26 20:02:03 -04:00
zerrors_freebsd_amd64.go syscall: add routing messages support for BSD variants 2011-05-26 20:02:03 -04:00
zerrors_linux_386.go syscall: add routing messages support for Linux 2011-05-26 17:04:58 -04:00
zerrors_linux_amd64.go syscall: add routing messages support for Linux 2011-05-26 17:04:58 -04:00
zerrors_linux_arm.go syscall: add routing messages support for Linux 2011-05-26 17:04:58 -04:00
zerrors_plan9_386.go R=rsc, brainman, ality, r2, r 2011-04-02 14:24:03 -07:00
zerrors_windows_386.go syscall: include all, even duplictate, invented error messages 2011-01-20 21:24:15 +11:00
zsyscall_darwin_386.go syscall: add Mmap, Munmap on Linux, FreeBSD, OS X 2011-04-06 17:52:02 -04:00
zsyscall_darwin_amd64.go syscall: add Mmap, Munmap on Linux, FreeBSD, OS X 2011-04-06 17:52:02 -04:00
zsyscall_freebsd_386.go syscall: add Mmap, Munmap on Linux, FreeBSD, OS X 2011-04-06 17:52:02 -04:00
zsyscall_freebsd_amd64.go syscall: add Mmap, Munmap on Linux, FreeBSD, OS X 2011-04-06 17:52:02 -04:00
zsyscall_linux_386.go syscall: sendfile 2011-05-20 11:51:31 -07:00
zsyscall_linux_amd64.go syscall: sendfile 2011-05-20 11:51:31 -07:00
zsyscall_linux_arm.go syscall: sendfile 2011-05-20 11:51:31 -07:00
zsyscall_plan9_386.go R=rsc, brainman, ality, r2, r 2011-04-02 14:24:03 -07:00
zsyscall_windows_386.go syscall: add Windows file mapping functions and constants 2011-05-02 09:35:55 +10:00
zsysnum_darwin_386.go 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
zsysnum_darwin_amd64.go syscall: rename from .sh to .pl, because these files are in Perl. 2011-03-21 13:02:10 -07:00
zsysnum_freebsd_386.go syscall: rebuild z files 2010-09-24 15:17:20 -04:00
zsysnum_freebsd_amd64.go syscall: regenerate zerrors_freebsd_amd64.go 2011-02-28 10:21:19 -05:00
zsysnum_linux_386.go syscall: Add DT_* and MADV_* constants on Linux. 2011-04-06 16:19:22 -04:00
zsysnum_linux_amd64.go syscall: Add DT_* and MADV_* constants on Linux. 2011-04-06 16:19:22 -04:00
zsysnum_linux_arm.go 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
zsysnum_plan9_386.go R=rsc, brainman, ality, r2, r 2011-04-02 14:24:03 -07:00
zsysnum_windows_386.go remove nacl 2010-12-15 11:49:23 -05:00
ztypes_darwin_386.go syscall: add TODO about required manual corrections 2011-05-18 10:51:45 -04:00
ztypes_darwin_amd64.go syscall: add TODO about required manual corrections 2011-05-18 10:51:45 -04:00
ztypes_freebsd_386.go syscall: add BPF support for freebsd/386, freebsd/amd64 2011-04-04 15:40:40 -04:00
ztypes_freebsd_amd64.go syscall: add BPF support for freebsd/386, freebsd/amd64 2011-04-04 15:40:40 -04:00
ztypes_linux_386.go syscall: add routing messages support for Linux 2011-05-26 17:04:58 -04:00
ztypes_linux_amd64.go syscall: add routing messages support for Linux 2011-05-26 17:04:58 -04:00
ztypes_linux_arm.go syscall: add routing messages support for Linux 2011-05-26 17:04:58 -04:00
ztypes_plan9_386.go R=rsc, brainman, ality, r2, r 2011-04-02 14:24:03 -07:00
ztypes_windows_386.go syscall: change Overlapped.HEvent type, it is a handle 2011-05-08 16:33:44 +10:00