Skip to content

Commit

Permalink
SoftwareUpdate.cpp: Fix installed OS detection regression
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Sep 27, 2023
1 parent 0febd7e commit 4f233dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RestrictEvents/SoftwareUpdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static int my_sysctl_vmm_present(__unused struct sysctl_oid *oidp, __unused void
// SYSLOG("supd", "\n\n\n\nsoftwareupdated vmm_present %d - >>> %s <<<<\n\n\n\n", arg2, procname);
if (revsbvmmIsSet && (
// Always return 1 in recovery/installers
(lilu.getRunMode() & LiluAPI::RunningInstallerRecovery != 0) ||
(lilu.getRunMode() & LiluAPI::RunningInstallerRecovery) != 0 ||
// Otherwise, check if userspace OS updaters/installers
(
strcmp(procname, "softwareupdated") == 0 ||
Expand Down

0 comments on commit 4f233dd

Please sign in to comment.