From 38059db83540f481e41bbf04bd5f66ce8d58f8de Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 8 Jan 2026 04:32:14 +0900 Subject: [PATCH] internal/pkg: make tar temporary directory writable This allows it to be renamed to work directory. Signed-off-by: Ophestra --- internal/pkg/tar.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go index 6c3e5c5..968e8a0 100644 --- a/internal/pkg/tar.go +++ b/internal/pkg/tar.go @@ -241,6 +241,10 @@ func (a *tarArtifact) Cure(c *CureContext) (err error) { return } + if err = os.Chmod(temp.String(), 0700); err != nil { + return + } + var entries []os.DirEntry if entries, err = os.ReadDir(temp.String()); err != nil { return