]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
d_type symlink checks
authorTimo Sirainen <tss@iki.fi>
Tue, 15 Jun 2004 03:20:12 +0000 (06:20 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 15 Jun 2004 03:20:12 +0000 (06:20 +0300)
--HG--
branch : HEAD

src/lib-storage/index/maildir/maildir-list.c

index 313aeae0d82a57e22006a7698b9393345252b86e..a5763ec4b3a4534ad86da5e7df4c6a6a745dbdb3 100644 (file)
@@ -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) {