mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-06 17:45:22 +00:00
BPF: Fix wrong d_type compare in fs classes (#6774)
This commit is contained in:
parent
4aaeb7a3dc
commit
af41184a00
@ -127,7 +127,7 @@ bool Filesystem::enumFiles(int dirfd, EnumFilesCallback callback) const {
|
||||
bool directory;
|
||||
if (entry->d_type == DT_DIR) {
|
||||
directory = true;
|
||||
} else if (entry->d_type == DT_LNK || DT_REG) {
|
||||
} else if (entry->d_type == DT_LNK || entry->d_type == DT_REG) {
|
||||
directory = false;
|
||||
} else {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user