about summary refs log tree commit diff
path: root/mseq.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-03-08 17:20:29 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-03-08 17:20:29 +0100
commit8d611a8a3d193779f077e83484f618267e98eba5 (patch)
tree5d4d1b778efbc6902ce140266527fcc69857f502 /mseq.c
parentdfc18e0040c64fac0318cc9c5964e3a923fa8029 (diff)
downloadmblaze-8d611a8a3d193779f077e83484f618267e98eba5.tar.gz
mblaze-8d611a8a3d193779f077e83484f618267e98eba5.tar.xz
mblaze-8d611a8a3d193779f077e83484f618267e98eba5.zip
mseq: extract DT_* handling, follow symlinks
Diffstat (limited to 'mseq.c')
-rw-r--r--mseq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mseq.c b/mseq.c
index e8bdd62..b8ebcfe 100644
--- a/mseq.c
+++ b/mseq.c
@@ -12,6 +12,7 @@
 #include <unistd.h>
 
 #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;