2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

fix compilation after previous commit

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Pavel Emelyanov
2016-02-20 14:04:30 +03:00
parent d1f8d02324
commit b2dfdb324f

View File

@@ -523,7 +523,7 @@ static unsigned int host_id(unsigned int id, UidGidExtent **map, int n)
return map[i]->lower_first + (id - map[i]->first);
}
return INVALID_ID;
return -1;
}
static uid_t host_uid(uid_t uid)
@@ -658,7 +658,7 @@ static int check_user_ns(int pid)
uid = host_uid(0);
gid = host_gid(0);
if (uid == INVALID_ID || gid == INVALID_ID) {
if (uid == -1 || gid == -1) {
pr_err("Unable to convert uid or gid\n");
return -1;
}