rune: Fix (Workround the argv problem between rune and occlum)
@@ -78,10 +78,9 @@ func (pal *enclaveRuntimePalApiV2) exec(cmd []string, envs []string, stdio [3]*o
var exe *C.char
argc := len(cmd)
pargs := make([]*C.char, argc)
- if argc > 1 {
exe = C.CString(cmd[0])
defer C.free(unsafe.Pointer(exe))
-
+ if argc > 1 {
cmd = cmd[1:]
for i, arg := range cmd {
logrus.Debugf("arg[%d]: %s", i, arg)
