Commit bdc83da0 authored by topjohnwu's avatar topjohnwu

Fix bug in magic mount

parent f872a122
...@@ -328,7 +328,7 @@ static void construct_tree(const char *module, struct node_entry *parent) { ...@@ -328,7 +328,7 @@ 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 == DO_NOTHING) { if (IS_DIR(node) && !(node->status & IS_MODULE)) {
// Intermediate node, travel deeper // Intermediate node, 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