Skip to content

Commit

Permalink
Packages: fix file type check
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Jan 18, 2025
1 parent f76981c commit 5137a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detection/packages/packages.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 5137a9e

Please sign in to comment.