1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Fix a number of potential security issues

This commit is contained in:
Chris Cummer
2018-08-03 10:14:57 -07:00
parent b5bdaf3150
commit 7d8acf725d
4 changed files with 14 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ func Log(msg string) {
return
}
f, err := os.OpenFile(logFilePath(), os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
f, err := os.OpenFile(logFilePath(), os.O_RDWR|os.O_CREATE|os.O_APPEND, 0600)
if err != nil {
log.Fatalf("error opening file: %v", err)
}