dovecot-2.2: lib-fs: fs-posix now allows reading from the same f...

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 3 21:53:48 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/1aed8e57ea1c
changeset: 15718:1aed8e57ea1c
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 03 21:51:40 2013 +0200
description:
lib-fs: fs-posix now allows reading from the same file that was created.

diffstat:

 src/lib-fs/fs-posix.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 30922a3668a9 -r 1aed8e57ea1c src/lib-fs/fs-posix.c
--- a/src/lib-fs/fs-posix.c	Sun Feb 03 21:48:58 2013 +0200
+++ b/src/lib-fs/fs-posix.c	Sun Feb 03 21:51:40 2013 +0200
@@ -404,6 +404,8 @@
 	i_free_and_null(file->temp_path);
 	file->success = TRUE;
 	file->seek_to_beginning = TRUE;
+	/* allow opening the file after writing to it */
+	file->open_mode = FS_OPEN_MODE_READONLY;
 	return 0;
 }
 


More information about the dovecot-cvs mailing list