Skip to content

Commit e292bf1

Browse files
committed
OS (Linux): sets point release for Debian
Fixes #1985
1 parent 55a0c6e commit e292bf1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/detection/os/os_linux.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,10 @@ FF_MAYBE_UNUSED static void getDebianVersion(FFOSResult* result)
192192
ffAppendFileBuffer("/etc/debian_version", &debianVersion);
193193
ffStrbufTrimRightSpace(&debianVersion);
194194
if (!debianVersion.length) return;
195-
ffStrbufSet(&result->version, &debianVersion);
196-
ffStrbufSet(&result->versionID, &debianVersion);
195+
ffStrbufDestroy(&result->versionID);
196+
ffStrbufInitMove(&result->versionID, &debianVersion);
197+
198+
ffStrbufSetF(&result->prettyName, "%s %s (%s)", result->name.chars, result->versionID.chars, result->codename.chars);
197199
}
198200

199201
FF_MAYBE_UNUSED static bool detectDebianDerived(FFOSResult* result)

0 commit comments

Comments
 (0)