From bdc83da09892634a5fa14f9b66fda4565db9071a Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 26 May 2017 22:58:55 +0800 Subject: [PATCH] Fix bug in magic mount --- jni/daemon/bootstages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jni/daemon/bootstages.c b/jni/daemon/bootstages.c index 71dbd115b..6f3cc7721 100644 --- a/jni/daemon/bootstages.c +++ b/jni/daemon/bootstages.c @@ -328,7 +328,7 @@ static void construct_tree(const char *module, struct node_entry *parent) { node->status |= IS_MODULE; } node = insert_child(parent, node); - if (node->status == DO_NOTHING) { + if (IS_DIR(node) && !(node->status & IS_MODULE)) { // Intermediate node, travel deeper construct_tree(module, node); }