dovecot-1.1: Removed posix_fallocate() failure check for AIX.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 5 13:49:36 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/bb189974e66f
changeset: 7904:bb189974e66f
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 05 13:49:13 2008 +0300
description:
Removed posix_fallocate() failure check for AIX.
Apparently it can fail in multiple ways, so we now rely on configure to
catch the problem.
diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
src/lib/file-set-size.c | 3 +--
diffs (13 lines):
diff -r 12565ef10d1c -r bb189974e66f src/lib/file-set-size.c
--- a/src/lib/file-set-size.c Sun Oct 05 13:48:15 2008 +0300
+++ b/src/lib/file-set-size.c Sun Oct 05 13:49:13 2008 +0300
@@ -46,8 +46,7 @@ int file_set_size(int fd, off_t size)
if (posix_fallocate(fd, st.st_size, size - st.st_size) == 0)
return 0;
- if (errno != EINVAL /* Solaris */ &&
- errno != ENOPROTOOPT /* AIX */) {
+ if (errno != EINVAL /* Solaris */) {
if (!ENOSPACE(errno))
i_error("posix_fallocate() failed: %m");
return -1;
More information about the dovecot-cvs
mailing list