changeset 15605:bdd1499989c6

dbox: Give a name to the file's output stream (for improved error logging).
author Timo Sirainen <tss@iki.fi>
date Wed, 09 Jan 2013 05:30:06 +0200
parents e098f2f90fb2
children b87a7c4d775f
files src/lib-storage/index/dbox-common/dbox-file.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-common/dbox-file.c	Tue Jan 08 05:37:43 2013 +0200
+++ b/src/lib-storage/index/dbox-common/dbox-file.c	Wed Jan 09 05:30:06 2013 +0200
@@ -469,6 +469,7 @@
 	ctx->file = file;
 	if (file->fd != -1) {
 		ctx->output = o_stream_create_fd_file(file->fd, 0, FALSE);
+		o_stream_set_name(ctx->output, file->cur_path);
 		o_stream_cork(ctx->output);
 	}
 	return ctx;