mirror of
https://github.com/containers/podman.git
synced 2025-12-08 14:48:48 +08:00
libpod: do not parse --hostuser in base 8
fix the parsing of --hostuser to treat the input in base 10. Closes: https://github.com/containers/podman/issues/19800 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@@ -821,12 +821,12 @@ func lookupHostUser(name string) (*runcuser.ExecUser, error) {
|
||||
if err != nil {
|
||||
return &execUser, err
|
||||
}
|
||||
uid, err := strconv.ParseUint(u.Uid, 8, 32)
|
||||
uid, err := strconv.ParseUint(u.Uid, 10, 32)
|
||||
if err != nil {
|
||||
return &execUser, err
|
||||
}
|
||||
|
||||
gid, err := strconv.ParseUint(u.Gid, 8, 32)
|
||||
gid, err := strconv.ParseUint(u.Gid, 10, 32)
|
||||
if err != nil {
|
||||
return &execUser, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user