Skip to content

Commit

Permalink
SAST: Resolve GoSec #G301 (CWE-276)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunginnanet committed Jun 20, 2024
1 parent af4a344 commit 35eebac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func Init() {
}

if chosen == "" && uconf != "" {
_ = os.MkdirAll(filepath.Join(uconf, Title), 0o645)
_ = os.MkdirAll(filepath.Join(uconf, Title), 0750)
chosen = filepath.Join(uconf, Title, "config.toml")
}

Expand Down
2 changes: 1 addition & 1 deletion internal/config/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func prepLogDir() {
if logDir == "" {
logDir = filepath.Join(home, ".local", "share", Title, "logs")
}
_ = os.MkdirAll(logDir, 0666)
_ = os.MkdirAll(logDir, 0750)
}

// StartLogger instantiates an instance of our zerolog loggger so we can hook it in our main package.
Expand Down

0 comments on commit 35eebac

Please sign in to comment.