From 41977f11b449677497a93456c499916c68e56334 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 26 Feb 2024 02:38:13 +0100 Subject: [PATCH] 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 --- adapter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter.go b/adapter.go index bed4ca7..d9dabb1 100755 --- a/adapter.go +++ b/adapter.go @@ -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 }