Commit b504dac6 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

userns: print uid-s as unsigned values

Reported-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5940e3d1
...@@ -835,7 +835,7 @@ static int write_id_map(pid_t pid, UidGidExtent **extents, int n, char *id_map) ...@@ -835,7 +835,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);
......
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