INNER CODE UNIT · C
canonicalize_existing_bootstrap_path
witchan/ios-mcp · mcp-root/main.c:92
static int canonicalize_existing_bootstrap_path(const char *path, char *buffer, size_t size) {
if (canonicalize_existing_path(path, buffer, size)) {
return 1;
}
#ifdef MCP_ROOTHIDE
const char *systemPath = jbroot(path);
if (systemPath && systemPath[0] != '\0' &&
canonicalize_existing_path(systemPath, buffer, size)) {
return 1;
}
#endif
return 0;
}
static int paths_match(const char *lhs, const char *rhs) {
if (!lhs || !rhs) {