Skip to content

Commit

Permalink
cpuns: remove extra printing
Browse files Browse the repository at this point in the history
Signed-off-by: the man <[email protected]>
  • Loading branch information
rminnichcodeu committed Sep 26, 2024
1 parent 26ece92 commit b10ba2a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmds/cpuns/main_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func checkprivate() error {
// sudo will get us into a root process, with correct environment
// set up.
func sudo(env string, args ...string) {
log.Printf("sudo: os.Env %v\nenv %v\nargs %v", os.Environ(), env, args)
n, err := os.Executable()
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -107,7 +106,6 @@ func sudo(env string, args ...string) {
// Be very careful in modifying this; it is designed to be
// simple and avoid fork bombs.
func unshare(env string, args ...string) {
log.Printf("unshare: os.Env %v\nenv %v\n args %v", os.Environ(), env, args)
n, err := os.Executable()
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -172,7 +170,6 @@ func main() {
unshare(*env, args...)
}

log.Printf("mount and run: os.Env %v\n*env %v\n args %v", os.Environ(), *env, args)
shell := "/bin/sh"
if len(args) == 0 {
sh, ok := os.LookupEnv("SHELL")
Expand Down

0 comments on commit b10ba2a

Please sign in to comment.