forked from rosa/hakurei
internal/pkg: skip character device nodes
This allows unpacking of tarballs containing these entries. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user