diff --git a/readline/history.go b/readline/history.go index db99fad0..d0138cd9 100644 --- a/readline/history.go +++ b/readline/history.go @@ -132,7 +132,7 @@ func (h *History) Save() error { tmpFile := h.Filename + ".tmp" - f, err := os.OpenFile(tmpFile, os.O_CREATE|os.O_WRONLY|os.O_TRUNC|os.O_APPEND, 0o666) + f, err := os.OpenFile(tmpFile, os.O_CREATE|os.O_WRONLY|os.O_TRUNC|os.O_APPEND, 0o600) if err != nil { return err }