Broader config file error handling.

This commit is contained in:
Solderpunk 2020-07-01 19:56:43 +02:00
parent 54f659c03f
commit 3c4c447bd3
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ func main() {
flag.Parse()
if conf_file == "" {
_, err := os.Stat("/etc/molly.conf")
if !os.IsNotExist(err) {
if err == nil {
conf_file = "/etc/molly.conf"
}
}