diff --git a/mlist.c b/mlist.c index 6fcfb66..65ed485 100644 --- a/mlist.c +++ b/mlist.c @@ -145,7 +145,7 @@ listdir(char *dir) for (bpos = 0; bpos < nread; bpos += d->d_reclen) { d = (struct linux_dirent64 *)(buf + bpos); - if (d->d_type != DT_REG && d->d_type != DT_UNKNOWN) + if (!MAIL_DT(d->d_type)) continue; if (d->d_name[0] == '.') continue; @@ -166,7 +166,7 @@ listdir(char *dir) if (!fd) return; while ((d = readdir(fd))) { - if (d->d_type != DT_REG && d->d_type != DT_UNKNOWN) + if (!MAIL_DT(d->d_type)) continue; if (d->d_name[0] == '.') continue;