From fc52b35121a615e17056ededa6b43da936a7ea34 Mon Sep 17 00:00:00 2001 From: Jakub Krajniak Date: Tue, 29 Jan 2019 16:06:30 +0100 Subject: [PATCH] execve called by syscall.Exec expected that the argv[0] should contain the filename associated with the file being executed. See: http://man7.org/linux/man-pages/man2/execve.2.html --- cmd/assume-role-arn/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/assume-role-arn/main.go b/cmd/assume-role-arn/main.go index 03ea1db..d1c23d7 100644 --- a/cmd/assume-role-arn/main.go +++ b/cmd/assume-role-arn/main.go @@ -91,7 +91,7 @@ func runCommand(args []string) error { panic(err) } - return syscall.Exec(binary, args[1:], env) + return syscall.Exec(binary, args, env) } func main() {