diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-07-25 14:07:38 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-07-25 14:07:38 +0900 |
| commit | 35147f6dfb0b81d2fe21f69b3800162b0cd7060f (patch) | |
| tree | de9e0c04976ce4a053a519757e6e824c623e0c2f /internal/pkg/tar.go | |
| parent | e5abf51296fa1405c4a6314eafc1b97d247c5b60 (diff) | |
internal/pkg: skip character device nodes
This allows unpacking of tarballs containing these entries.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/tar.go')
| -rw-r--r-- | internal/pkg/tar.go | 7 |
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 |
