Displaying 1 result from an estimated 1 matches for "move_count".
2009 Jul 08
1
readdir and rename don't mix; patch included
...{
struct mail_storage *storage = &ctx->mbox->storage->storage;
const char *path;
@@ -486,6 +487,11 @@
}
}
+ /* APPLE - rename can cause readdir to fail with EINVAL; force
+ quiet rescan unless this is the final such rescan already */
+ if (errno == EINVAL && move_count && !final)
+ move_count = MAILDIR_RENAME_RESCAN_COUNT + 1;
+ else /* APPLE reduce code deltas */
if (errno != 0) {
mail_storage_set_critical(storage,
"readdir(%s) failed: %m", path);
@@ -772,7 +778,8 @@
that new/ dir is checked as well. it's a good idea...