From 5ae2031bcfd010fb91fed50c56d8d92e7a5bde70 Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Tue, 11 Oct 2022 14:28:21 +0200 Subject: [PATCH] Manually cherry pick shell process name detection --- src/detection/terminalShell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/terminalShell.c b/src/detection/terminalShell.c index cd3785a0f..820a99106 100644 --- a/src/detection/terminalShell.c +++ b/src/detection/terminalShell.c @@ -95,7 +95,7 @@ static void getTerminalShell(FFTerminalShellResult* result, const char* pid) strcasecmp(name, "dash") == 0 || strcasecmp(name, "git-shell") == 0 ) { - ffStrbufAppendS(&result->shellProcessName, name); + ffStrbufSetS(&result->shellProcessName, name); // prevent from `fishbash` getProcessInformation(pid, &result->shellProcessName, &result->shellExe, &result->shellExeName); getTerminalShell(result, ppid);