Skip to content

Commit 4d831c8

Browse files
committed
OS (Linux): don't change prettyName on Ubuntu development branch
Ref: #1483
1 parent e6e78a7 commit 4d831c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/detection/os/os_linux.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,10 @@ void ffDetectOSImpl(FFOSResult* os)
371371
if(ffStrbufEqualS(&os->id, "ubuntu"))
372372
{
373373
if (!getUbuntuFlavour(os))
374-
ffStrbufSetF(&os->prettyName, "%s %s", os->name.chars, os->version.chars); // os->version contains code name
374+
{
375+
if (!ffStrbufEndsWithS(&os->prettyName, " (development branch)"))
376+
ffStrbufSetF(&os->prettyName, "%s %s", os->name.chars, os->version.chars); // os->version contains code name
377+
}
375378
}
376379
else if(ffStrbufEqualS(&os->id, "debian"))
377380
{

0 commit comments

Comments
 (0)