Files
containerd/archive
Maksym Pavlenko 0f51aa874d Add NoSameOwner option when unpacking tars
When unpacking a TAR archive, containerd preserves file's owner:
https://github.com/containerd/containerd/blob/main/archive/tar.go#L384

In some cases this behavior is not desired. In current implementation we
avoid `Lchown` on Windows. Another case when this should be skipped is
when using native snapshotter on darwin and running as non-root user.

This PR extracts a generic option - `WithNoSameOwner` (same as
`tar --no-same-owner`) to skip `Lchown` when its not required.

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-09-09 17:07:26 -07:00
..
2022-07-23 08:36:20 -07:00
2018-12-14 23:18:42 +08:00
2021-08-05 22:27:46 -07:00
2021-08-22 09:31:50 +09:00
2021-08-05 22:27:46 -07:00
2018-02-19 10:32:26 +09:00
2018-02-19 10:32:26 +09:00