Skip to content

Commit 5012bc2

Browse files
committed
Processes (Linux): be compatible with Hurd
1 parent 5775409 commit 5012bc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/detection/processes/processes_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const char* ffDetectProcesses(uint32_t* result)
1616
{
1717
if (
1818
#ifdef _DIRENT_HAVE_D_TYPE
19-
entry->d_type == DT_DIR &&
19+
(entry->d_type == DT_DIR || entry->d_type == DT_UNKNOWN) &&
2020
#endif
2121
ffCharIsDigit(entry->d_name[0]))
2222
++num;

0 commit comments

Comments
 (0)