提交 1d0eb221 编写于 作者: S sun_fan

init: fix ueventd bugs

Signed-off-by: Nsun_fan <sun_fan1@hoperun.com>
上级 9161650e
......@@ -405,16 +405,19 @@ void ChangeSysAttributePermissions(const char *sysPath)
struct ListNode *node = NULL;
struct SysUdevConf *config = NULL;
int matched = 0;
if (!ListEmpty(g_sysDevices)) {
ForEachListEntry(&g_sysDevices, node) {
config = ListEntry(node, struct SysUdevConf, list);
if (STRINGEQUAL(config->sysPath, sysPath)) {
matched = 1;
break;
}
}
}
if (config == NULL) {
if (matched == 0) {
INIT_LOGE("Failed match syspath %s.", sysPath);
return;
}
char sysAttr[SYSPATH_SIZE] = {0};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册