fix temporary history file permissions
This commit is contained in:
parent
2b9892a808
commit
f95d2f25f3
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ func (h *History) Save() error {
|
||||||
|
|
||||||
tmpFile := h.Filename + ".tmp"
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue