Skip to content

Commit

Permalink
kernel: fix incorrect strcmp
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Oct 23, 2023
1 parent 55f712d commit bf823a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bool become_manager(char *pkg)
#ifdef KSU_MANAGER_PACKAGE
// pkg is `/<real 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",
KSU_MANAGER_PACKAGE);
return false;
Expand Down

0 comments on commit bf823a2

Please sign in to comment.