]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Removed posix_fallocate() failure check for AIX.
authorTimo Sirainen <tss@iki.fi>
Sun, 5 Oct 2008 10:49:29 +0000 (13:49 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 5 Oct 2008 10:49:29 +0000 (13:49 +0300)
Apparently it can fail in multiple ways, so we now rely on configure to
catch the problem.

--HG--
branch : HEAD

src/lib/file-set-size.c

index 47de0676e097ad465bfc614837127671ed3bbdf5..67c8779afc7c5270d463679ed4dcd1fdb791d827 100644 (file)
@@ -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;