From f4c0028e012a48c783b534b2744a8b570e9bc4b1 Mon Sep 17 00:00:00 2001 From: Andrew Vagin Date: Tue, 20 Oct 2015 16:34:00 +0300 Subject: [PATCH] userns: print uid-s as unsigned values Reported-by: Cyrill Gorcunov Signed-off-by: Andrew Vagin Acked-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- namespaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/namespaces.c b/namespaces.c index 9ce4783d7..01b74116a 100644 --- a/namespaces.c +++ b/namespaces.c @@ -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++) 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]->count);