BPF: Fix wrong d_type compare in fs classes (#6774)

This commit is contained in:
Alessandro Gario 2020-11-29 14:38:14 +01:00 committed by GitHub
parent 4aaeb7a3dc
commit af41184a00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;