summaryrefslogtreecommitdiff
path: root/pkg/api/handlers
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2020-11-19 00:52:27 +0100
committerMatej Vasek <mvasek@redhat.com>2020-11-19 20:31:47 +0100
commitbe7e9f63f241c826e3a5772da355a3d66d254c6c (patch)
treeab0db7cf337e32b6006a9d47355cfd9ffe8efc26 /pkg/api/handlers
parent6ad2f1d2482ff156257c74a2b4bcd75d5b12d95d (diff)
downloadpodman-be7e9f63f241c826e3a5772da355a3d66d254c6c.tar.gz
podman-be7e9f63f241c826e3a5772da355a3d66d254c6c.tar.bz2
podman-be7e9f63f241c826e3a5772da355a3d66d254c6c.zip
add comment
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r--pkg/api/handlers/compat/containers_archive.go2
1 files changed, 2 insertions, 0 deletions
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{