Skip to content

Commit

Permalink
fix: append to file instead of creating new one
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio Greggi <ale_grey_91@hotmail.it>
  • Loading branch information
alegrey91 committed Dec 20, 2024
1 parent b52646b commit 15ed84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/writer/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Write(syscalls []uint32, functionSymbol string, opts WriteOptions) error {
return fmt.Errorf("error creating directory: %v", err)
}
path := path.Join(opts.Directory, fileName)
file, err := os.Create(path)
file, err := os.OpenFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
return fmt.Errorf("error creating file %s: %v", path, err)
}
Expand Down

0 comments on commit 15ed84e

Please sign in to comment.