Mercurial > dovecot > core-2.2
changeset 3267:10d67baec28f HEAD
Don't panic in stat(). o_stream_send_istream() wants to know the file size.
It settles for "unknown" fine, so return that.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 08 Apr 2005 01:44:29 +0300 |
parents | beaa5ff9d86a |
children | 354bfcbc01d3 |
files | src/lib-mail/istream-header-filter.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-mail/istream-header-filter.c Fri Apr 08 01:37:44 2005 +0300 +++ b/src/lib-mail/istream-header-filter.c Fri Apr 08 01:44:29 2005 +0300 @@ -275,9 +275,10 @@ i_panic("istream-header-filter sync() not implemented"); } -static const struct stat *_stat(struct _istream *stream __attr_unused__) +static const struct stat *_stat(struct _istream *stream) { - i_panic("istream-header-filter stat() not implemented"); + /* return size and others as unknown */ + return &stream->statbuf; } struct istream *