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

userns: print uid-s as unsigned values

Reported-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrew Vagin 2015-10-20 16:34:00 +03:00 committed by Pavel Emelyanov
parent 6a400cd73a
commit f4c0028e01

View File

@ -821,7 +821,7 @@ static int write_id_map(pid_t pid, UidGidExtent **extents, int n, char *id_map)
*/ */
for (i = 0; i < n; i++) for (i = 0; i < n; i++)
off += snprintf(buf + off, sizeof(buf) - off, off += snprintf(buf + off, sizeof(buf) - off,
"%d %d %d\n", extents[i]->first, "%u %u %u\n", extents[i]->first,
extents[i]->lower_first, extents[i]->lower_first,
extents[i]->count); extents[i]->count);