From 152f5d3fa6ddbbd4b17c9fb8a03d3dda5b646ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sun, 26 May 2024 09:37:31 +0800 Subject: [PATCH] Revert "OS (Linux): remove special handling of Loc-OS" This reverts commit 5ec272acff529d862480e7c6d386d0b1b27bdfba. --- src/detection/os/os_linux.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/detection/os/os_linux.c b/src/detection/os/os_linux.c index 89c6faf4c..a4ea2f5cf 100644 --- a/src/detection/os/os_linux.c +++ b/src/detection/os/os_linux.c @@ -157,6 +157,12 @@ static bool detectDebianDerived(FFOSResult* result) ffStrbufSetNS(&result->versionID, versionEnd - versionStart, result->prettyName.chars + versionStart); return true; } + else if (ffStrbufStartsWithS(&result->name, "Loc-OS")) + { + ffStrbufSetS(&result->id, "locos"); + ffStrbufSetS(&result->idLike, "debian"); + return true; + } else if (ffPathExists("/usr/bin/pveversion", FF_PATHTYPE_FILE)) { ffStrbufSetS(&result->id, "pve");