clean our passPath for good measure

This commit is contained in:
Aaron Bieber 2021-12-10 15:50:28 -07:00
parent 14bdf17e49
commit e3b3dad3ee

View File

@ -200,7 +200,7 @@ func main() {
log.Fatalln(err)
}
f, err := os.OpenFile(passPath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0600)
f, err := os.OpenFile(filepath.Clean(passPath), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0600)
if err != nil {
log.Fatalln(err)
}
@ -231,7 +231,7 @@ func main() {
os.Exit(1)
}
} else {
p, err := os.Open(passPath)
p, err := os.Open(filepath.Clean(passPath))
if err != nil {
log.Fatal(err)
}