Skip to content

Commit

Permalink
log: logfile should not be executable
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig committed Dec 9, 2024
1 parent 33c0bdf commit 04cf914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/cache/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func (c *Cache) logLatest(opts *AddOpts) (err error) {
}

// Open the log for appending, and create it if it doesn't exist
logFile, err := os.OpenFile(path.Join(opts.PackPath(), "latest.log"), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0755)
logFile, err := os.OpenFile(path.Join(opts.PackPath(), "latest.log"), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
logger.ErrorWithContext(err, "error open latest log file", c.ErrorContext.GetAll()...)
return
Expand Down

0 comments on commit 04cf914

Please sign in to comment.