Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions NativeScript/runtime/modules/module/ModuleInternal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include <unordered_map>
#include <unordered_set>

#include "runtime/NativeScriptException.h"
#include "native_api_util.h"
#include "runtime/NativeScriptException.h"
#include "runtime/RuntimeConfig.h"
#include "runtime/Util.h"
#include "runtime/modules/node/Node.h"
Expand Down Expand Up @@ -173,7 +173,14 @@ bool PathExistsWithExactCase(const std::filesystem::path& path) {
}
}

if (iterEc || !matched) {
if (iterEc) {
// On device the sandbox forbids enumerating everything above the app
// container (/private/var/...), so case verification is only possible
// for listable levels; exists() already vouched for the full path.
current /= component;
continue;
}
if (!matched) {
return false;
}

Expand Down
Loading