[CRIU] [PATCH] uns: Fix descriptor passed into a walk

Cyrill Gorcunov gorcunov at openvz.org
Mon Aug 29 06:06:05 PDT 2016


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 criu/namespaces.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/namespaces.c b/criu/namespaces.c
index 151f74074d54..b563c2562f5f 100644
--- a/criu/namespaces.c
+++ b/criu/namespaces.c
@@ -796,7 +796,7 @@ int collect_user_namespaces(bool for_dump)
 	if (!(root_ns_mask & CLONE_NEWUSER))
 		return 0;
 
-	return walk_namespaces(&net_ns_desc, collect_user_ns, NULL);
+	return walk_namespaces(&user_ns_desc, collect_user_ns, NULL);
 }
 
 static int check_user_ns(int pid)
-- 
2.7.4



More information about the CRIU mailing list