dovecot-2.2: lib-fs: posix backend now names the istreams with t...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 28 13:31:35 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/46d1da1cdfc7
changeset: 17180:46d1da1cdfc7
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 28 15:31:06 2014 +0200
description:
lib-fs: posix backend now names the istreams with the file's path.

diffstat:

 src/lib-fs/fs-posix.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (19 lines):

diff -r b64b507c0377 -r 46d1da1cdfc7 src/lib-fs/fs-posix.c
--- a/src/lib-fs/fs-posix.c	Fri Mar 28 15:29:53 2014 +0200
+++ b/src/lib-fs/fs-posix.c	Fri Mar 28 15:31:06 2014 +0200
@@ -348,12 +348,11 @@
 	struct posix_fs_file *file = (struct posix_fs_file *)_file;
 	struct istream *input;
 
-	if (file->fd == -1 && fs_posix_open(file) < 0) {
+	if (file->fd == -1 && fs_posix_open(file) < 0)
 		input = i_stream_create_error(errno);
-		i_stream_set_name(input, _file->path);
-	} else {
+	else
 		input = i_stream_create_fd(file->fd, max_buffer_size, FALSE);
-	}
+	i_stream_set_name(input, _file->path);
 	i_stream_add_destroy_callback(input, fs_posix_file_close, _file);
 	return input;
 }


More information about the dovecot-cvs mailing list