From: Timo Sirainen Date: Sun, 5 Oct 2008 10:49:29 +0000 (+0300) Subject: Removed posix_fallocate() failure check for AIX. X-Git-Tag: 1.2.alpha2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36d968a7935247657c20b73c6b2eeca6b889cb2e;p=thirdparty%2Fdovecot%2Fcore.git Removed posix_fallocate() failure check for AIX. Apparently it can fail in multiple ways, so we now rely on configure to catch the problem. --HG-- branch : HEAD --- diff --git a/src/lib/file-set-size.c b/src/lib/file-set-size.c index 47de0676e0..67c8779afc 100644 --- a/src/lib/file-set-size.c +++ b/src/lib/file-set-size.c @@ -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;