dovecot-1.1: If dovecot-acl-list can't be created because of per...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Mar 20 15:09:33 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/d6f1eb00e4d3
changeset: 7428:d6f1eb00e4d3
user: Timo Sirainen <tss at iki.fi>
date: Thu Mar 20 15:09:30 2008 +0200
description:
If dovecot-acl-list can't be created because of permission problems, it's
probably because the account is read-only, so don't log an error.
diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
src/plugins/acl/acl-backend-vfile-acllist.c | 7 ++++++-
diffs (17 lines):
diff -r 264d4f41c627 -r d6f1eb00e4d3 src/plugins/acl/acl-backend-vfile-acllist.c
--- a/src/plugins/acl/acl-backend-vfile-acllist.c Thu Mar 20 15:02:31 2008 +0200
+++ b/src/plugins/acl/acl-backend-vfile-acllist.c Thu Mar 20 15:09:30 2008 +0200
@@ -203,7 +203,12 @@ int acl_backend_vfile_acllist_rebuild(st
the file at the same time the result should be the same. */
fd = safe_mkstemp(path, mode, (uid_t)-1, gid);
if (fd == -1) {
- i_error("safe_mkstemp(%s) failed: %m", str_c(path));
+ if (errno == EACCES) {
+ /* Ignore silently if we can't create it */
+ return 0;
+ }
+ i_error("dovecot-acl-list creation failed: "
+ "safe_mkstemp(%s) failed: %m", str_c(path));
return -1;
}
output = o_stream_create_fd_file(fd, 0, FALSE);
More information about the dovecot-cvs
mailing list