From 8d611a8a3d193779f077e83484f618267e98eba5 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 8 Mar 2020 17:20:29 +0100 Subject: mseq: extract DT_* handling, follow symlinks --- mseq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mseq.c') diff --git a/mseq.c b/mseq.c index e8bdd62..b8ebcfe 100644 --- a/mseq.c +++ b/mseq.c @@ -12,6 +12,7 @@ #include #include "blaze822.h" +#include "blaze822_priv.h" static int fflag; static int rflag; @@ -58,10 +59,9 @@ namescan(char *dir) if (!fd) return; 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; -- cgit 1.4.1