dovecot-2.0: fs layout: Don't "File name too long" errors if giv...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 20 05:54:50 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/5380ee17392f
changeset: 10772:5380ee17392f
user: Timo Sirainen <tss at iki.fi>
date: Sat Feb 20 05:54:46 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 d3e2444aa0ea -r 5380ee17392f src/lib-storage/list/mailbox-list-fs-iter.c
--- a/src/lib-storage/list/mailbox-list-fs-iter.c Fri Feb 19 14:23:05 2010 +0200
+++ b/src/lib-storage/list/mailbox-list-fs-iter.c Sat Feb 20 05:54:46 2010 +0200
@@ -693,7 +693,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