]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: fix StartProcess in Plan 9
authorFazlul Shahriar <fshahriar@gmail.com>
Mon, 11 Apr 2011 19:39:53 +0000 (12:39 -0700)
committerRob Pike <r@golang.org>
Mon, 11 Apr 2011 19:39:53 +0000 (12:39 -0700)
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

index 94ec395d6d35b5cc0069cb571f1f8586101051ef..962b39b780f6de95bc2b505d701df014a079ef7c 100644 (file)
@@ -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