diff --git a/src/detection/packages/packages.c b/src/detection/packages/packages.c index 586b3416f..47cf99b6c 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 {