X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/d7548c16cdbff6f9baa2f545eb808030a6b3ec2e..5c14e4c916d76ce35ee2b07bf832d5f3b6118260:/hotline/files.go?ds=sidebyside diff --git a/hotline/files.go b/hotline/files.go index 04334e9..42e25db 100644 --- a/hotline/files.go +++ b/hotline/files.go @@ -180,7 +180,7 @@ func effectiveFile(filePath string) (*os.File, error) { } if errors.Is(err, fs.ErrNotExist) { - file, err = os.OpenFile(filePath+incompleteFileSuffix, os.O_APPEND|os.O_WRONLY, 0644) + file, err = os.OpenFile(filePath+incompleteFileSuffix, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0644) if err != nil { return nil, err }