aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/tar.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-08 04:32:14 +0900
committerOphestra <cat@gensokyo.uk>2026-01-08 04:32:14 +0900
commit38059db83540f481e41bbf04bd5f66ce8d58f8de (patch)
treecbacaf4504154a4d1f1eee9435fa12c821d34b4e /internal/pkg/tar.go
parent409fd3149ea47a465df017a629ce039eb4fc7b5a (diff)
internal/pkg: make tar temporary directory writable
This allows it to be renamed to work directory. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/tar.go')
-rw-r--r--internal/pkg/tar.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go
index 6c3e5c50..968e8a0d 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