minc: extract DT_* handling

pull/173/head
Leah Neukirchen 4 years ago
parent 6dd0799aab
commit 48b490f379

@ -11,6 +11,7 @@
#include <unistd.h> #include <unistd.h>
#include "blaze822.h" #include "blaze822.h"
#include "blaze822_priv.h"
static int qflag; static int qflag;
static int status; static int status;
@ -35,10 +36,9 @@ inc(char *dir)
} }
while ((d = readdir(fd))) { while ((d = readdir(fd))) {
#if defined(DT_REG) && defined(DT_UNKNOWN) if (!MAIL_DT(d->d_type))
if (d->d_type != DT_REG && d->d_type != DT_UNKNOWN)
continue; continue;
#endif
if (d->d_name[0] == '.') if (d->d_name[0] == '.')
continue; continue;

Loading…
Cancel
Save