From 8c1a703560a90e4286eb37571c6bdd001b82276c Mon Sep 17 00:00:00 2001 From: Fazlul Shahriar Date: Mon, 11 Apr 2011 12:39:53 -0700 Subject: [PATCH] syscall: fix StartProcess in Plan 9 This makes os_test.TestStartProcess test from os package pass. R=paulzhol, r2, r CC=golang-dev https://golang.org/cl/4385052 --- src/pkg/syscall/exec_plan9.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/syscall/exec_plan9.go b/src/pkg/syscall/exec_plan9.go index 94ec395d6d..962b39b780 100644 --- a/src/pkg/syscall/exec_plan9.go +++ b/src/pkg/syscall/exec_plan9.go @@ -363,7 +363,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err Error) p[1] = -1 // Convert args to C form. - argv0p := StringBytePtr(argv[0]) + argv0p := StringBytePtr(argv0) argvp := StringArrayPtr(argv) var chroot *byte