From: Timo Sirainen Date: Tue, 15 Jun 2004 03:20:12 +0000 (+0300) Subject: d_type symlink checks X-Git-Tag: 1.1.alpha1~3971 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74ad05f07b688b6814a1a8fdff209c2b8d5e1785;p=thirdparty%2Fdovecot%2Fcore.git d_type symlink checks --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/maildir/maildir-list.c b/src/lib-storage/index/maildir/maildir-list.c index 313aeae0d8..a5763ec4b3 100644 --- a/src/lib-storage/index/maildir/maildir-list.c +++ b/src/lib-storage/index/maildir/maildir-list.c @@ -95,8 +95,10 @@ static int maildir_fill_readdir(struct maildir_list_context *ctx, /* 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) {