From: Timo Sirainen Date: Sat, 17 May 2003 09:08:10 +0000 (+0300) Subject: Don't try to cork files. X-Git-Tag: 1.1.alpha1~4630 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e88f0a214ea86055cdfd2ae4105afbb6aba8119;p=thirdparty%2Fdovecot%2Fcore.git Don't try to cork files. --HG-- branch : HEAD --- diff --git a/src/lib/ostream-file.c b/src/lib/ostream-file.c index 4b7a474185..f1abe40d8f 100644 --- a/src/lib/ostream-file.c +++ b/src/lib/ostream-file.c @@ -882,9 +882,12 @@ o_stream_create_file(int fd, pool_t pool, size_t max_buffer_size, don't bother to even try with them. */ fstream->no_sendfile = TRUE; #endif + fstream->no_socket_cork = FALSE; } else { - if (net_getsockname(fd, NULL, NULL) < 0) + if (net_getsockname(fd, NULL, NULL) < 0) { fstream->no_sendfile = TRUE; + fstream->no_socket_cork = FALSE; + } } return ostream; }