We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9130da6 commit a623b59Copy full SHA for a623b59
src/detection/os/os_linux.c
@@ -49,10 +49,7 @@ static bool parseOsRelease(const char* fileName, FFOSResult* result)
49
// Get Armbian version properties and set idLike based on the Armbian image basis
50
FF_MAYBE_UNUSED static void getArmbianVersion(FFOSResult* result)
51
{
52
- if(ffStrbufIgnCaseEqualS(&result->id, "ubuntu"))
53
- ffStrbufSetS(&result->idLike, "ubuntu");
54
- else if(ffStrbufIgnCaseEqualS(&result->id, "debian"))
55
- ffStrbufSetS(&result->idLike, "debian");
+ ffStrbufSet(&result->idLike, &result->id);
56
ffStrbufSetS(&result->id, "armbian");
57
ffStrbufClear(&result->versionID);
58
uint32_t versionStart = ffStrbufFirstIndexC(&result->prettyName, ' ') + 1;
0 commit comments