diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-03-08 17:17:48 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-03-08 17:17:48 +0100 |
commit | 48b490f3793ec438a7fa15ae249d98e4871d34cd (patch) | |
tree | b0953e8e9dc3399c64d6227bb583e3fda8c8fa97 | |
parent | 6dd0799aab88c1e923141b249f90fd728324e1f3 (diff) | |
download | mblaze-48b490f3793ec438a7fa15ae249d98e4871d34cd.tar.gz mblaze-48b490f3793ec438a7fa15ae249d98e4871d34cd.tar.xz mblaze-48b490f3793ec438a7fa15ae249d98e4871d34cd.zip |
minc: extract DT_* handling
-rw-r--r-- | minc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/minc.c b/minc.c index 4e55292..f495da1 100644 --- a/minc.c +++ b/minc.c @@ -11,6 +11,7 @@ #include <unistd.h> #include "blaze822.h" +#include "blaze822_priv.h" static int qflag; static int status; @@ -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; |