]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tarfs: Ignore global extended headers.
authorDag-Erling Smørgrav <des@FreeBSD.org>
Wed, 3 Apr 2024 09:55:06 +0000 (11:55 +0200)
committerDag-Erling Smørgrav <des@FreeBSD.org>
Wed, 3 Apr 2024 09:55:06 +0000 (11:55 +0200)
commit584e1c355ae3c994331005b7196cc87a714e5317
tree58733fd528f62e55e8a342dbc8c2b54396e81601
parentb1fd95c9e24791d44593e611406b41e57826a5b8
tarfs: Ignore global extended headers.

Previously, we would error out if we encountered a global extended
header, because we don't know what it means.  This doesn't really
matter though, and traditionally, tar implementations have either
ignored them or treated them as plain files, so just ignore them.
This allows tarfs to mount tar files created by `git archive`.

MFC after: 3 days
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D44600
sys/fs/tarfs/tarfs_vfsops.c
tests/sys/fs/tarfs/tarfs_test.sh