Fix a mode of files/dir (report, log)

This commit is contained in:
Kota Kanbe
2016-09-14 17:47:12 +09:00
parent 3d68783b7f
commit fb70d1b2f0
4 changed files with 6 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ func (w LogrusWriter) Write(scanResults []models.ScanResult) error {
if runtime.GOOS == "windows" {
path = filepath.Join(os.Getenv("APPDATA"), "vuls", "report.log")
}
f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0600)
if err != nil {
return err
}