Files
moby/integration/container
Sebastiaan van Stijn f658ea3152 Fix parsing of user/group during copy operation
If a container was started with

- a numeric uid
- both a user and group (username:groupname)
- uid and gid (uid:gid)

The copy action failed, because the "username:groupname"
was looked up using getent.

This patch;

- splits `user` and `group` before looking up
- if numeric `uid` or `gid` is used and lookup fails,
  the `uid` / `gid` is used as-is

The code also looked up the user and group on the host
instead of in the container when using getent; this patch
fixes the lookup to only use the container's /etc/passwd
and /etc/group instead.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-01-20 12:45:29 +01:00
..
2024-11-27 15:52:49 +01:00
2024-09-06 21:53:09 +10:00