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>
These strings were resolved using the user information on the host
filesystem and were decreasing reproducibility.
For moby/buildkit issue 3688
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>