mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 03:47:51 +00:00
Merge pull request #1845 from molecula/staticcheck-file-perm-fix
fix file perms to be _actually_ 600
This commit is contained in:
commit
2494aaf959
1 changed files with 2 additions and 2 deletions
|
|
@ -624,12 +624,12 @@ func (m *Command) setupQueryLogger() error {
|
|||
var err error
|
||||
|
||||
if m.Config.Auth.QueryLogPath == "" {
|
||||
f, err = logger.NewFileWriterMode("queries/query.log", 600)
|
||||
f, err = logger.NewFileWriterMode("queries/query.log", 0600)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "opening file")
|
||||
}
|
||||
} else {
|
||||
f, err = logger.NewFileWriterMode(m.Config.Auth.QueryLogPath, 600)
|
||||
f, err = logger.NewFileWriterMode(m.Config.Auth.QueryLogPath, 0600)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "opening file")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue