dovecot-1.2: dict-file: If file_dotlock_open() fails, log also t...

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 30 23:18:04 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/c34010571c02
changeset: 8996:c34010571c02
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 30 16:17:56 2009 -0400
description:
dict-file: If file_dotlock_open() fails, log also the path.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-dict/dict-file.c |    3 ++-

diffs (13 lines):

diff -r e14f1d4b6688 -r c34010571c02 src/lib-dict/dict-file.c
--- a/src/lib-dict/dict-file.c	Wed Apr 29 15:05:53 2009 -0400
+++ b/src/lib-dict/dict-file.c	Thu Apr 30 16:17:56 2009 -0400
@@ -292,7 +292,8 @@ static int file_dict_write_changes(struc
 	fd = file_dotlock_open(&file_dict_dotlock_settings, dict->path, 0,
 			       &dotlock);
 	if (fd == -1) {
-		i_error("file dict commit: file_dotlock_open() failed: %m");
+		i_error("file dict commit: file_dotlock_open(%s) failed: %m",
+			dict->path);
 		return -1;
 	}
 	/* refresh once more now that we're locked */


More information about the dovecot-cvs mailing list