Skip to content

Commit

Permalink
fix: Apply chmod to tmpfile, not the outfile
Browse files Browse the repository at this point in the history
This was missed during review, so the permissions are now too narrow.

Signed-off-by: Martin Weinelt <[email protected]>
  • Loading branch information
mweinelt committed Feb 26, 2024
1 parent eb7d5d9 commit 41977f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (a *Adapter) writeOutput() error {
return err
}

err = os.Chmod(a.output, 0644)
err = os.Chmod(tmpfile.Name(), 0644)
if err != nil {
return err
}
Expand Down

0 comments on commit 41977f1

Please sign in to comment.