From 166f6412c21f33a3e2a79c82228a67763123ab1f Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Wed, 14 Jun 2017 00:55:41 +0800 Subject: [PATCH] Fix a flaw in mounting logic --- jni/daemon/bootstages.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jni/daemon/bootstages.c b/jni/daemon/bootstages.c index 75e590689..7314842f5 100644 --- a/jni/daemon/bootstages.c +++ b/jni/daemon/bootstages.c @@ -325,8 +325,8 @@ static void construct_tree(const char *module, struct node_entry *parent) { node->status = IS_MODULE; } node = insert_child(parent, node); - if (node->status == IS_INTER) { - // Intermediate node, travel deeper + if (node->status & (IS_SKEL | IS_INTER)) { + // Intermediate folder, travel deeper construct_tree(module, node); } }