dovecot-2.2: mail_attachment_*: Fixed "stream doesn't support se...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Nov 8 17:49:08 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/87ff0023fe79
changeset: 16952:87ff0023fe79
user: Timo Sirainen <tss at iki.fi>
date: Fri Nov 08 17:48:54 2013 +0200
description:
mail_attachment_*: Fixed "stream doesn't support seeking backwards" panic
Caused by recent changes.
diffstat:
src/lib-storage/index/index-attachment.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 37054c79e04b -r 87ff0023fe79 src/lib-storage/index/index-attachment.c
--- a/src/lib-storage/index/index-attachment.c Fri Nov 08 17:44:25 2013 +0200
+++ b/src/lib-storage/index/index-attachment.c Fri Nov 08 17:48:54 2013 +0200
@@ -423,7 +423,8 @@
array_foreach(&extrefs_arr, extref) {
path = t_strdup_printf("%s/%s%s", attachment_dir,
extref->path, path_suffix);
- file = fs_file_init(fs, path, FS_OPEN_MODE_READONLY);
+ file = fs_file_init(fs, path, FS_OPEN_MODE_READONLY |
+ FS_OPEN_FLAG_SEEKABLE);
input = i_stream_create_fs_file(&file, IO_BLOCK_SIZE);
ret = istream_attachment_connector_add(conn, input,
More information about the dovecot-cvs
mailing list