From 37b81ad1f6cadac6b30a683e7d965983b45a56c4 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 27 Dec 2022 00:57:41 +0800 Subject: [PATCH] Refine module preparation return value --- native/src/core/module.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/native/src/core/module.cpp b/native/src/core/module.cpp index 6967cf51f..330b26fa8 100644 --- a/native/src/core/module.cpp +++ b/native/src/core/module.cpp @@ -117,7 +117,7 @@ public: // Return false to indicate need to upgrade to module bool collect_files(const char *module, int dfd); - // Return false to indicate need to upgrade to skeleton + // Return true to indicate need to upgrade to skeleton bool prepare(); // Default directory mount logic @@ -422,14 +422,14 @@ bool dir_node::prepare() { } } } - if (auto dn = dyn_cast(it->second); dn && dn->is_dir() && !dn->prepare()) { + if (auto dn = dyn_cast(it->second); dn && dn->is_dir() && dn->prepare()) { // Upgrade child to tmpfs it = upgrade(it); } next_node: ++it; } - return !to_tmpfs; + return to_tmpfs; } bool dir_node::collect_files(const char *module, int dfd) {