Skip to content

Commit

Permalink
InitSystem (Linux): fix dinit version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Sep 3, 2024
1 parent aec27c3 commit 90b2bf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/detection/initsystem/initsystem_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const char* ffDetectInitSystem(FFInitSystemResult* result)
}) == NULL && result->version.length)
{
// Dinit version 0.18.0.
ffStrbufSubstrBeforeFirstC(&result->version, '\n');
ffStrbufTrimRight(&result->version, '.');
ffStrbufSubstrAfterLastC(&result->version, ' ');
}
Expand Down

0 comments on commit 90b2bf0

Please sign in to comment.