kernel: fix incorrect prune uid for work profile app, close #587
This commit is contained in:
@@ -29,7 +29,7 @@ static bool is_uid_exist(uid_t uid, void *data)
|
|||||||
|
|
||||||
bool exist = false;
|
bool exist = false;
|
||||||
list_for_each_entry (np, list, list) {
|
list_for_each_entry (np, list, list) {
|
||||||
if (np->uid % 100000 == uid) {
|
if (np->uid == uid % 100000) {
|
||||||
exist = true;
|
exist = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user