Skip to content

Commit f890ddb

Browse files
committed
[bugfix] Once again try to fix saving backup file
1 parent 6c53d2c commit f890ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/app/controller/engineHistory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (r *StatePreserver) Open() error {
8282
}
8383
r.file = f
8484

85-
f, err = os.OpenFile(backupFilename, os.O_APPEND|os.O_WRONLY|os.O_CREATE, os.ModeAppend)
85+
f, err = os.OpenFile(backupFilename, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
8686
if err != nil {
8787
return err
8888
}

0 commit comments

Comments
 (0)