kernel: fix incorrect strcmp
This commit is contained in:
@@ -27,7 +27,7 @@ bool become_manager(char *pkg)
|
|||||||
#ifdef KSU_MANAGER_PACKAGE
|
#ifdef KSU_MANAGER_PACKAGE
|
||||||
// pkg is `/<real package>`
|
// pkg is `/<real package>`
|
||||||
if (strncmp(pkg + 1, KSU_MANAGER_PACKAGE,
|
if (strncmp(pkg + 1, KSU_MANAGER_PACKAGE,
|
||||||
sizeof(KSU_MANAGER_PACKAGE) - 1) != 0) {
|
sizeof(KSU_MANAGER_PACKAGE)) != 0) {
|
||||||
pr_info("manager package is inconsistent with kernel build: %s\n",
|
pr_info("manager package is inconsistent with kernel build: %s\n",
|
||||||
KSU_MANAGER_PACKAGE);
|
KSU_MANAGER_PACKAGE);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user