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); }