dovecot-1.0: When not using O_EXCL dotlocking it logged an error...

dovecot at dovecot.org dovecot at dovecot.org
Wed Mar 5 00:37:16 EET 2008


details:   http://hg.dovecot.org/dovecot-1.0/rev/a9ac53bc191b
changeset: 5528:a9ac53bc191b
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 05 00:37:12 2008 +0200
description:
When not using O_EXCL dotlocking it logged an error if temp file creation
failed with EACCES.

diffstat:

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

diffs (13 lines):

diff -r 888b0facb649 -r a9ac53bc191b src/lib/file-dotlock.c
--- a/src/lib/file-dotlock.c	Tue Mar 04 08:14:59 2008 +0200
+++ b/src/lib/file-dotlock.c	Wed Mar 05 00:37:12 2008 +0200
@@ -262,7 +262,8 @@ static int create_temp_file(string_t *pa
 			break;
 
 		if (errno != EEXIST) {
-			i_error("open(%s) failed: %m", str_c(path));
+			if (errno != EACCES)
+				i_error("open(%s) failed: %m", str_c(path));
 			return -1;
 		}
 	}


More information about the dovecot-cvs mailing list