Skip to content

Commit 5ae2031

Browse files
Manually cherry pick shell process name detection
1 parent 6b81223 commit 5ae2031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/terminalShell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static void getTerminalShell(FFTerminalShellResult* result, const char* pid)
9595
strcasecmp(name, "dash") == 0 ||
9696
strcasecmp(name, "git-shell") == 0
9797
) {
98-
ffStrbufAppendS(&result->shellProcessName, name);
98+
ffStrbufSetS(&result->shellProcessName, name); // prevent from `fishbash`
9999
getProcessInformation(pid, &result->shellProcessName, &result->shellExe, &result->shellExeName);
100100

101101
getTerminalShell(result, ppid);

0 commit comments

Comments
 (0)