add comment

Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
Matej Vasek 2020-11-19 00:52:27 +01:00
parent 6ad2f1d248
commit be7e9f63f2
1 changed files with 2 additions and 0 deletions

View File

@ -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{