]> Cypherpunks repositories - gostls13.git/commit
syscall: fix Exec on solaris
authorShawn Walker-Salas <shawn.walker@oracle.com>
Wed, 28 Jun 2017 17:58:44 +0000 (10:58 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 28 Jun 2017 19:02:05 +0000 (19:02 +0000)
commit2d1bd1fe9d2c08ecc2ba710fe80e226e80db966f
tree21a16e252f91c53e4eacff5b965af57b714561ac
parentcfb8404e76f94b8bf97188a4470541e9d1ddafa4
syscall: fix Exec on solaris

The test added for issue #18146 exposed a long-existing bug in the
Solaris port; notably, that syscall.Exec uses RawSyscall -- which is not
actually functional for the Solaris port (intentionally) and only exists
as a placebo to satisfy build requirements.

Call syscall.execve instead for Solaris.

Fixes #20832

Change-Id: I327d863f4bbbbbb6e5ecf66b82152c4030825d09
Reviewed-on: https://go-review.googlesource.com/47032
Run-TryBot: Shawn Walker-Salas <shawn.walker@oracle.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/syscall/exec_solaris.go
src/syscall/exec_unix.go