From 4f233dd24f6197946b14a2a5b1901d1497427540 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Wed, 27 Sep 2023 08:07:36 -0600 Subject: [PATCH] SoftwareUpdate.cpp: Fix installed OS detection regression --- RestrictEvents/SoftwareUpdate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RestrictEvents/SoftwareUpdate.cpp b/RestrictEvents/SoftwareUpdate.cpp index f67433b..72be3fc 100644 --- a/RestrictEvents/SoftwareUpdate.cpp +++ b/RestrictEvents/SoftwareUpdate.cpp @@ -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 ||