changeset 2135:fdacb90d3f45 HEAD

d_type symlink checks
author Timo Sirainen <tss@iki.fi>
date Tue, 15 Jun 2004 06:20:12 +0300
parents c70d0155d93c
children 33ee7db25ee2
files src/lib-storage/index/maildir/maildir-list.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-list.c	Tue Jun 15 06:14:06 2004 +0300
+++ b/src/lib-storage/index/maildir/maildir-list.c	Tue Jun 15 06:20:12 2004 +0300
@@ -95,8 +95,10 @@
 		/* check the type always since there's no extra cost */
 		if (d->d_type == DT_DIR)
 			;
-		else if (d->d_type != DT_UNKNOWN)
+		else if (d->d_type != DT_UNKNOWN && d->d_type != DT_LNK)
 			continue;
+		else if (d->d_type == DT_LNK && !stat_dirs)
+			;
 		else
 #endif
 		if (stat_dirs) {