未验证 提交 15758cf4 编写于 作者: O openharmony_ci 提交者: Gitee

!2190 FIX:修复uevent crash

Merge pull request !2190 from cheng_jinsong/0811
......@@ -134,7 +134,9 @@ static void SetDeviceLable(const char *path, char **symLinks)
if (strncmp(linkName, byNamePath, strlen(byNamePath)) == 0) {
(void)Restorecon(linkName);
lgetfilecon(linkName, &context);
setfilecon(path, context);
if (context != NULL) {
setfilecon(path, context);
}
return;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册