diff src/lib/istream-file.c @ 9170:b1a27ed69e60 HEAD

Added struct istream.readable_fd, which is used to determine if sendfile() can be used.
author Timo Sirainen <tss@iki.fi>
date Sat, 27 Jun 2009 20:53:35 -0400
parents b9faf4db2a9f
children 00cd9aacd03c
line wrap: on
line diff
--- a/src/lib/istream-file.c	Sun Jun 28 00:22:44 2009 +0200
+++ b/src/lib/istream-file.c	Sat Jun 27 20:53:35 2009 -0400
@@ -171,6 +171,7 @@
 		fstream->istream.istream.blocking = TRUE;
 		fstream->istream.istream.seekable = TRUE;
 	}
+	fstream->istream.istream.readable_fd = TRUE;
 
 	return i_stream_create(&fstream->istream, NULL, fd);
 }