Skip to content

Commit

Permalink
Debug setuid stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Herbert committed Jun 28, 2017
1 parent 9019bd4 commit f1db690
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"os/exec"
"path"
"strings"
"syscall"

"log"

Expand Down Expand Up @@ -40,6 +41,7 @@ func main() {

if *debug {
log.SetOutput(io.MultiWriter(slog, os.Stderr))
log.Printf("uid=%d euid=%d gid=%d egid=%d\n", syscall.Getuid(), syscall.Geteuid(), syscall.Getgid(), syscall.Getegid())
} else {
log.SetOutput(slog)
}
Expand Down

0 comments on commit f1db690

Please sign in to comment.