dovecot-1.2: fs layout: Don't "File name too long" errors if giv...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 20 05:55:12 EET 2010


details:   http://hg.dovecot.org/dovecot-1.2/rev/93ee1f7bfeff
changeset: 9545:93ee1f7bfeff
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Feb 20 05:55:10 2010 +0200
description:
fs layout: Don't "File name too long" errors if giving too long path to LIST.

diffstat:

 src/lib-storage/list/mailbox-list-fs-iter.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 1ff706e7d95f -r 93ee1f7bfeff src/lib-storage/list/mailbox-list-fs-iter.c
--- a/src/lib-storage/list/mailbox-list-fs-iter.c	Sun Feb 07 01:55:06 2010 +0200
+++ b/src/lib-storage/list/mailbox-list-fs-iter.c	Sat Feb 20 05:55:10 2010 +0200
@@ -691,7 +691,8 @@
 		/* lstat() it to make sure it exists */
 		path = t_strdup_printf("%s/%s", dir->real_path, fname);
 		if (lstat(path, &st) < 0) {
-			if (!ENOTFOUND(errno) && errno != EACCES)
+			if (!ENOTFOUND(errno) && errno != EACCES &&
+			    errno != ENAMETOOLONG)
 				i_error("fs list: lstat(%s) failed: %m", path);
 			continue;
 		}


More information about the dovecot-cvs mailing list