未验证 提交 6f5ed9ed 编写于 作者: O openharmony_ci 提交者: Gitee

!1246 优化代码,防止路径末尾为'/'时多调用一次Restorecon()

Merge pull request !1246 from felix.dp/dev
......@@ -113,7 +113,7 @@ static void SetDeviceLable(const char *path)
continue;
}
if (gap < 0) { // end with '/'
break;
return;
}
if (memcpy_s(buffer, PATH_MAX, path, p - path - 1) != EOK) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册