From 5137a9e7a40b086e6ad7c4a21e05ea36ac4c9638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= <zhangsongcui3371@sina.com> Date: Sat, 18 Jan 2025 19:34:50 +0800 Subject: [PATCH] Packages: fix file type check --- src/detection/packages/packages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/packages/packages.c b/src/detection/packages/packages.c index 586b3416ff..47cf99b6c5 100644 --- a/src/detection/packages/packages.c +++ b/src/detection/packages/packages.c @@ -102,7 +102,7 @@ uint32_t ffPackagesGetNumElements(const char* dirname, bool isdir) #ifndef __sun if(entry->d_type != DT_UNKNOWN && entry->d_type != DT_LNK) - ok = entry->d_type == isdir ? DT_DIR : DT_REG; + ok = entry->d_type == (isdir ? DT_DIR : DT_REG); else #endif {