未验证 提交 46e9169b 编写于 作者: O openharmony_ci 提交者: Gitee

!1294 修复/sys_prod目录不生效问题

Merge pull request !1294 from zaki/update_path
......@@ -82,15 +82,15 @@ static bool UnderBasicMountPoint(const char *path)
}
size_t pathSize = strlen(path);
if (strncmp(path, "/dev", strlen("/dev")) == 0 && pathSize > strlen("/dev")) {
if (strncmp(path, "/dev/", strlen("/dev/")) == 0 && pathSize > strlen("/dev/")) {
return true;
}
if (strncmp(path, "/sys", strlen("/sys")) == 0 && pathSize > strlen("/sys")) {
if (strncmp(path, "/sys/", strlen("/sys/")) == 0 && pathSize > strlen("/sys/")) {
return true;
}
if (strncmp(path, "/proc", strlen("/proc")) == 0 && pathSize > strlen("/proc")) {
if (strncmp(path, "/proc/", strlen("/proc/")) == 0 && pathSize > strlen("/proc/")) {
return true;
}
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册