Skip to content

Commit 8b8eb6f

Browse files
committed
TerminalShell (Linux): ignores run-parts
Ref: #2048
1 parent 056fe21 commit 8b8eb6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/detection/terminalshell/terminalshell_linux.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ static pid_t getShellInfo(FFShellResult* result, pid_t pid)
5757
ffStrbufEqualS(&result->processName, "flashfetch") ||
5858
ffStrbufEqualS(&result->processName, "proot") ||
5959
ffStrbufEqualS(&result->processName, "script") ||
60+
#ifdef __linux__
61+
ffStrbufEqualS(&result->processName, "run-parts") ||
62+
#endif
6063
ffStrbufContainS(&result->processName, "debug") ||
6164
ffStrbufContainS(&result->processName, "command-not-") ||
6265
ffStrbufEndsWithS(&result->processName, ".sh")
@@ -113,6 +116,7 @@ static pid_t getTerminalInfo(FFTerminalResult* result, pid_t pid)
113116
#ifdef __linux__
114117
ffStrbufStartsWithS(&result->processName, "Relay(") || // Unknown process in WSL2
115118
ffStrbufStartsWithS(&result->processName, "flatpak-") || // #707
119+
ffStrbufEqualS(&result->processName, "run-parts") || // #2048
116120
#endif
117121
ffStrbufEndsWithS(&result->processName, ".sh")
118122
)

0 commit comments

Comments
 (0)