dovecot-2.0: file_set_size() was broken with OSes that didn't su...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Aug 28 19:57:35 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/865ad92d0eb3
changeset: 9818:865ad92d0eb3
user: Timo Sirainen <tss at iki.fi>
date: Fri Aug 28 12:57:26 2009 -0400
description:
file_set_size() was broken with OSes that didn't support posix_fallocate().
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/file-set-size.c | 2 +-
diffs (12 lines):
diff -r 9d55ed4fbd26 -r 865ad92d0eb3 src/lib/file-set-size.c
--- a/src/lib/file-set-size.c Fri Aug 28 11:38:06 2009 -0400
+++ b/src/lib/file-set-size.c Fri Aug 28 12:57:26 2009 -0400
@@ -72,7 +72,7 @@ int file_set_size(int fd, off_t size)
i_error("pwrite() failed: %m");
return -1;
}
- offset += size;
+ offset += ret;
}
return 0;
}
More information about the dovecot-cvs
mailing list