diff --git a/dnscrypt-proxy/main.go b/dnscrypt-proxy/main.go index 37b00279..3be67581 100644 --- a/dnscrypt-proxy/main.go +++ b/dnscrypt-proxy/main.go @@ -93,6 +93,9 @@ func main() { dlog.Fatal(err) } if *svcFlag == "install" { + if fullexecpath, err := os.Executable(); err == nil { + WarnIfMaybeWritableByOtherUsers(fullexecpath) + } dlog.Notice("Installed as a service. Use `-service start` to start") } else if *svcFlag == "uninstall" { dlog.Notice("Service uninstalled")