main: fix lookup for overflow uid

we were mistakenly using the overflow GID also for UIDs lookups.  Not
a big issue as they usually have the same value.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2020-06-20 20:34:25 +02:00
parent 0d985794d9
commit 1d8f4b529d
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

2
main.c
View File

@ -666,7 +666,7 @@ find_mapping (unsigned int id, struct ovl_mapping *mapping, bool direct, bool ui
static uid_t
get_uid (struct ovl_data *data, uid_t id)
{
return find_mapping (id, data->uid_mappings, false, false);
return find_mapping (id, data->uid_mappings, false, true);
}
static uid_t