dovecot-2.2: lib-fs: fs_copy*() didn't update metadata_changed c...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Aug 16 11:15:00 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/e8e838cb9663
changeset: 18936:e8e838cb9663
user: Timo Sirainen <tss at iki.fi>
date: Sun Aug 16 13:14:11 2015 +0200
description:
lib-fs: fs_copy*() didn't update metadata_changed correctly.
It was supposed to be (only) set when the copying actually finished.
diffstat:
src/lib-fs/fs-api.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 2f1378beeef6 -r e8e838cb9663 src/lib-fs/fs-api.c
--- a/src/lib-fs/fs-api.c Sun Aug 16 13:10:48 2015 +0200
+++ b/src/lib-fs/fs-api.c Sun Aug 16 13:14:11 2015 +0200
@@ -761,7 +761,7 @@
T_BEGIN {
ret = src->fs->v.copy(src, dest);
} T_END;
- if (ret < 0 || errno != EAGAIN)
+ if (!(ret < 0 && errno == EAGAIN))
dest->metadata_changed = FALSE;
return ret;
}
@@ -773,7 +773,7 @@
T_BEGIN {
ret = dest->fs->v.copy(NULL, dest);
} T_END;
- if (ret < 0 || errno != EAGAIN)
+ if (!(ret < 0 && errno == EAGAIN))
dest->metadata_changed = FALSE;
return ret;
}
More information about the dovecot-cvs
mailing list