do not run honk as root
This commit is contained in:
parent
6b830f8fe5
commit
24017928ab
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -74,6 +74,10 @@ func main() {
|
|||
ilog = log.I
|
||||
dlog = log.D
|
||||
|
||||
if os.Geteuid() == 0 {
|
||||
elog.Fatalf("do not run honk as root")
|
||||
}
|
||||
|
||||
args := flag.Args()
|
||||
cmd := "run"
|
||||
if len(args) > 0 {
|
||||
|
|
Loading…
Reference in a new issue