dovecot-2.2: fs-posix: Set file's fd to -1 after closing it

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 8 00:19:04 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/57960f02d1bb
changeset: 16239:57960f02d1bb
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 08 00:18:56 2013 +0300
description:
fs-posix: Set file's fd to -1 after closing it

diffstat:

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

diffs (11 lines):

diff -r bb25fa35d887 -r 57960f02d1bb src/lib-fs/fs-posix.c
--- a/src/lib-fs/fs-posix.c	Sun Apr 07 23:56:01 2013 +0300
+++ b/src/lib-fs/fs-posix.c	Mon Apr 08 00:18:56 2013 +0300
@@ -259,6 +259,7 @@
 			fs_set_critical(file->file.fs, "close(%s) failed: %m",
 					file->file.path);
 		}
+		file->fd = -1;
 	}
 }
 


More information about the dovecot-cvs mailing list