internal/pkg: skip character device nodes
Test / Create distribution (push) Successful in 1m0s
Test / Sandbox (push) Successful in 3m2s
Test / Hakurei (push) Successful in 5m1s
Test / Sandbox (race detector) (push) Successful in 6m18s
Test / Hakurei (race detector) (push) Successful in 7m20s
Test / ShareFS (push) Successful in 7m52s
Test / Flake checks (push) Successful in 1m18s

This allows unpacking of tarballs containing these entries.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
cat
2026-07-25 14:07:38 +09:00
parent e5abf51296
commit 35147f6dfb
+7
View File
@@ -172,6 +172,13 @@ func (a *tarArtifact) Cure(t *TContext) (err error) {
} }
break break
case tar.TypeChar:
t.GetMessage().Verbosef(
"skipping character device %d, %d %q",
header.Devmajor, header.Devminor, header.Name,
)
continue
case tar.TypeXGlobalHeader: case tar.TypeXGlobalHeader:
continue // ignore continue // ignore