Commit 166f6412 authored by topjohnwu's avatar topjohnwu

Fix a flaw in mounting logic

parent 1e877808
...@@ -325,8 +325,8 @@ static void construct_tree(const char *module, struct node_entry *parent) { ...@@ -325,8 +325,8 @@ static void construct_tree(const char *module, struct node_entry *parent) {
node->status = IS_MODULE; node->status = IS_MODULE;
} }
node = insert_child(parent, node); node = insert_child(parent, node);
if (node->status == IS_INTER) { if (node->status & (IS_SKEL | IS_INTER)) {
// Intermediate node, travel deeper // Intermediate folder, travel deeper
construct_tree(module, node); construct_tree(module, node);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment