dovecot-1.1: file_dotlock_create(): Don't log an EACCES failures.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Mar 4 07:54:58 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/09cdd4330d73
changeset: 7340:09cdd4330d73
user: Timo Sirainen <tss at iki.fi>
date: Tue Mar 04 07:54:41 2008 +0200
description:
file_dotlock_create(): Don't log an EACCES failures.
diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
src/lib/file-dotlock.c | 8 +++++---
diffs (25 lines):
diff -r 218245e5e4e7 -r 09cdd4330d73 src/lib/file-dotlock.c
--- a/src/lib/file-dotlock.c Tue Mar 04 07:44:19 2008 +0200
+++ b/src/lib/file-dotlock.c Tue Mar 04 07:54:41 2008 +0200
@@ -362,8 +362,10 @@ static int try_create_lock_hardlink(stru
if (errno == EEXIST)
return 0;
- i_error("link(%s, %s) failed: %m",
- lock_info->temp_path, lock_info->lock_path);
+ if (errno != EACCES) {
+ i_error("link(%s, %s) failed: %m",
+ lock_info->temp_path, lock_info->lock_path);
+ }
return -1;
}
@@ -384,7 +386,7 @@ static int try_create_lock_excl(struct l
if (errno == EEXIST)
return 0;
- if (errno != ENOENT)
+ if (errno != ENOENT && errno != EACCES)
i_error("open(%s) failed: %m", lock_info->lock_path);
return -1;
}
More information about the dovecot-cvs
mailing list