[CRIU] [PATCH] userns: print uid-s as unsigned values

Andrew Vagin avagin at virtuozzo.com
Tue Oct 20 06:34:56 PDT 2015


Reported-by: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 namespaces.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/namespaces.c b/namespaces.c
index 4233c59..d4abd97 100644
--- a/namespaces.c
+++ b/namespaces.c
@@ -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++)
 		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);
 
-- 
1.8.3.1



More information about the CRIU mailing list