read_related_namespaces() itself doesn't read names of new namespaces.
Connecting namespaces for making a tree is the the main job the function.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
close(fd_missing);
}
-static void read_related_namespaces(struct lsns *ls)
+static void connect_namespaces(struct lsns *ls)
{
struct list_head *p;
struct lsns_namespace *orphan[2] = {NULL, NULL};
read_persistent_namespaces(ls);
if (ls->tree == LSNS_TREE_OWNER || ls->tree == LSNS_TREE_PARENT)
- read_related_namespaces(ls);
+ connect_namespaces(ls);
#endif
list_sort(&ls->namespaces, cmp_namespaces, NULL);