Skip to content

Commit 4a1ada6

Browse files
committed
Host (Linux): more detailed info of WSL
1 parent e5f57a3 commit 4a1ada6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/detection/host/host_linux.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ const char* ffDetectHost(FFHostResult* host)
7777
//On WSL, the real host can't be detected. Instead use WSL as host.
7878
if(wslDistroName != NULL || getenv("WSL_DISTRO") != NULL || getenv("WSL_INTEROP") != NULL)
7979
{
80-
ffStrbufAppendS(&host->name, "Windows Subsystem for Linux");
80+
ffStrbufSetStatic(&host->name, "Windows Subsystem for Linux");
8181
if (wslDistroName)
8282
ffStrbufAppendF(&host->name, " - %s", wslDistroName);
83-
ffStrbufAppendS(&host->family, "WSL");
83+
ffStrbufSetStatic(&host->family, "WSL");
84+
ffStrbufSetStatic(&host->vendor, "Microsoft Corporation");
8485

8586
if (instance.config.general.detectVersion)
8687
{

0 commit comments

Comments
 (0)