Closed
Description
In "fat" go this code
package main
import (
"os"
"os/exec"
"strings"
)
func main() {
cmd := exec.Command("su", "-c", "id")
cmd.Stdin = strings.NewReader("toor")
cmd.Stdout = os.Stdout
cmd.Run()
}
works correctly and print uid=0(root) gid=0(root) groups=0(root)
. But in tinygo this code print nothing. Why?
Metadata
Metadata
Assignees
Labels
No labels