X-Git-Url: http://www.git.cypherpunks.ru/?p=gocheese.git;a=blobdiff_plain;f=passwd.go;h=f6760d2910091bdcbefc301d2d85f29ae471512e;hp=dbdac8c178065bb20fb77495548da27554661d3b;hb=b036ee436eb9bd8889734232a22d3f24be5c9ee2;hpb=ad6b9b1dca039678e7c48fe07e864b614e01158f diff --git a/passwd.go b/passwd.go index dbdac8c..f6760d2 100644 --- a/passwd.go +++ b/passwd.go @@ -22,6 +22,7 @@ import ( "errors" "io/ioutil" "log" + "os" "strings" ) @@ -52,6 +53,9 @@ func strToAuther(verifier string) (string, Auther, error) { func refreshPasswd() { passwd, err := ioutil.ReadFile(*passwdPath) + if os.IsNotExist(err) { + return + } if err != nil { log.Fatal(err) }