Skip to content

Commit

Permalink
minc: extract DT_* handling
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed Mar 8, 2020
1 parent 6dd0799 commit 48b490f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions minc.c
Expand Up @@ -11,6 +11,7 @@
#include <unistd.h>

#include "blaze822.h"
#include "blaze822_priv.h"

static int qflag;
static int status;
Expand All @@ -35,10 +36,9 @@ inc(char *dir)
}

while ((d = readdir(fd))) {
#if defined(DT_REG) && defined(DT_UNKNOWN)
if (d->d_type != DT_REG && d->d_type != DT_UNKNOWN)
if (!MAIL_DT(d->d_type))
continue;
#endif

if (d->d_name[0] == '.')
continue;

Expand Down

0 comments on commit 48b490f

Please sign in to comment.