containerd/archive/tarheader
Artem Khramov 1fd3a46526
archive/tarheader: fix FreeBSD hdr for regular files
This update addresses an issue where the stat call on FreeBSD could
return -1 for regular files. This led to incorrect Devmajor and
Devminor values, which should be zero in such cases. Refer to the
discussion on this bug in the following PR:
https://github.com/containerd/containerd/pull/5991.

The code change now handles this scenario appropriately.

Signed-off-by: Artem Khramov <akhramov@pm.me>
2023-08-11 23:50:08 +03:00
..
tarheader_unix.go archive/tarheader: fix FreeBSD hdr for regular files 2023-08-11 23:50:08 +03:00
tarheader.go archive: disable looking up usernames and groupnames on the host 2023-03-08 02:04:40 +09:00