From be7e9f63f241c826e3a5772da355a3d66d254c6c Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Thu, 19 Nov 2020 00:52:27 +0100 Subject: add comment Signed-off-by: Matej Vasek --- pkg/api/handlers/compat/containers_archive.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg') diff --git a/pkg/api/handlers/compat/containers_archive.go b/pkg/api/handlers/compat/containers_archive.go index 337b1787c..10f755a59 100644 --- a/pkg/api/handlers/compat/containers_archive.go +++ b/pkg/api/handlers/compat/containers_archive.go @@ -250,6 +250,8 @@ func statsToHeader(stats *copier.StatForItem) (string, error) { return buff.String(), nil } +// the utility functions below are copied from abi/cp.go + func getUser(mountPoint string, userspec string) (specs.User, error) { uid, gid, _, err := chrootuser.GetUser(mountPoint, userspec) u := specs.User{ -- cgit v1.2.3-54-g00ecf