Skip to content

Commit

Permalink
open chunk file wronly
Browse files Browse the repository at this point in the history
  • Loading branch information
rusq committed Apr 13, 2023
1 parent e991919 commit bf19d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/slackdump/internal/export/expproc/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func newBaseProc(dir string, name string) (*baseproc, error) {
return nil, fmt.Errorf("file %s exists and not empty", filename)
}
}
f, err := os.Create(filename)
f, err := os.OpenFile(filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit bf19d7e

Please sign in to comment.