diff --git a/internal/history/history.go b/internal/history/history.go index 59f7712..c775ea7 100644 --- a/internal/history/history.go +++ b/internal/history/history.go @@ -61,10 +61,10 @@ func Append(path string, e Entry) error { if e.Timestamp.IsZero() { e.Timestamp = time.Now() } - if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil { + if err := os.MkdirAll(filepath.Dir(path), 0o700); err != nil { return err } - f, err := os.OpenFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0o644) + f, err := os.OpenFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0o600) if err != nil { return err }