dovecot-2.0: dbox: Check correctly if dbox_attachment_dir is ena...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Oct 2 14:33:55 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/18730e72ab27
changeset: 12237:18730e72ab27
user: Timo Sirainen <tss at iki.fi>
date: Fri Jul 30 15:59:31 2010 +0100
description:
dbox: Check correctly if dbox_attachment_dir is enabled.
diffstat:
src/lib-storage/index/dbox-common/dbox-attachment.c | 2 +-
src/lib-storage/index/dbox-common/dbox-file.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r ed1b7a4f225f -r 18730e72ab27 src/lib-storage/index/dbox-common/dbox-attachment.c
--- a/src/lib-storage/index/dbox-common/dbox-attachment.c Fri Jul 30 15:58:12 2010 +0100
+++ b/src/lib-storage/index/dbox-common/dbox-attachment.c Fri Jul 30 15:59:31 2010 +0100
@@ -22,7 +22,7 @@
struct dbox_storage *storage =
(struct dbox_storage *)ctx->ctx.transaction->box->storage;
- if (storage->attachment_dir == NULL)
+ if (*storage->attachment_dir == '\0')
return;
ctx->attach.parser = message_parser_init(default_pool,
diff -r ed1b7a4f225f -r 18730e72ab27 src/lib-storage/index/dbox-common/dbox-file.c
--- a/src/lib-storage/index/dbox-common/dbox-file.c Fri Jul 30 15:58:12 2010 +0100
+++ b/src/lib-storage/index/dbox-common/dbox-file.c Fri Jul 30 15:59:31 2010 +0100
@@ -398,7 +398,7 @@
if ((ret = dbox_file_seek(file, offset)) <= 0)
return ret;
- if (file->storage->attachment_dir != NULL)
+ if (*file->storage->attachment_dir != '\0')
return dbox_attachment_file_get_stream(file, stream_r);
*stream_r = i_stream_create_limit(file->input, file->cur_physical_size);
More information about the dovecot-cvs
mailing list