From 0f50f9ddc0a623b31f2b100b7d059d835c3e6ed1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 26 Feb 2024 02:38:13 +0100 Subject: [PATCH] Apply chmod to tmpfile, not the outfile This was missed during review, so the permissions are now too narrow. --- 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 }