Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Vagin <avagin@virtuozzo.com>2015-10-20 16:34:00 +0300
committerPavel Emelyanov <xemul@parallels.com>2015-10-22 16:21:23 +0300
commitf4c0028e012a48c783b534b2744a8b570e9bc4b1 (patch)
treec30790571a16326955188a288225908707b3a6ff
parent6a400cd73a0f571354748a406c2b0661d9d92196 (diff)
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>
-rw-r--r--namespaces.c2
1 files changed, 1 insertions, 1 deletions
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);