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

dovecot at dovecot.org dovecot at dovecot.org
Fri May 1 00:02:39 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/ea0b68301004
changeset: 9180:ea0b68301004
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 f8460b27db00 -r ea0b68301004 src/lib-dict/dict-file.c
--- a/src/lib-dict/dict-file.c	Thu Apr 30 15:02:44 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