Commit b2dfdb32 authored by Pavel Emelyanov's avatar Pavel Emelyanov

fix compilation after previous commit

Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent d1f8d023
...@@ -523,7 +523,7 @@ static unsigned int host_id(unsigned int id, UidGidExtent **map, int n) ...@@ -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 map[i]->lower_first + (id - map[i]->first);
} }
return INVALID_ID; return -1;
} }
static uid_t host_uid(uid_t uid) static uid_t host_uid(uid_t uid)
...@@ -658,7 +658,7 @@ static int check_user_ns(int pid) ...@@ -658,7 +658,7 @@ static int check_user_ns(int pid)
uid = host_uid(0); uid = host_uid(0);
gid = host_gid(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"); pr_err("Unable to convert uid or gid\n");
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment