Skip to content

Commit 41977f1

Browse files
committed
fix: Apply chmod to tmpfile, not the outfile
This was missed during review, so the permissions are now too narrow. Signed-off-by: Martin Weinelt <[email protected]>
1 parent eb7d5d9 commit 41977f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (a *Adapter) writeOutput() error {
105105
return err
106106
}
107107

108-
err = os.Chmod(a.output, 0644)
108+
err = os.Chmod(tmpfile.Name(), 0644)
109109
if err != nil {
110110
return err
111111
}

0 commit comments

Comments
 (0)