Fix bug in magic mount

This commit is contained in:
topjohnwu 2017-05-26 22:58:55 +08:00
parent f872a122a9
commit bdc83da098

View File

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