aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-07-25 14:07:38 +0900
committerOphestra <cat@gensokyo.uk>2026-07-25 14:07:38 +0900
commit35147f6dfb0b81d2fe21f69b3800162b0cd7060f (patch)
treede9e0c04976ce4a053a519757e6e824c623e0c2f
parente5abf51296fa1405c4a6314eafc1b97d247c5b60 (diff)
internal/pkg: skip character device nodes
This allows unpacking of tarballs containing these entries. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/pkg/tar.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go
index f1861edd..60b23e81 100644
--- a/internal/pkg/tar.go
+++ b/internal/pkg/tar.go
@@ -172,6 +172,13 @@ func (a *tarArtifact) Cure(t *TContext) (err error) {
}
break
+ case tar.TypeChar:
+ t.GetMessage().Verbosef(
+ "skipping character device %d, %d %q",
+ header.Devmajor, header.Devminor, header.Name,
+ )
+ continue
+
case tar.TypeXGlobalHeader:
continue // ignore