From: Timo Sirainen Date: Thu, 20 Mar 2008 13:09:30 +0000 (+0200) Subject: If dovecot-acl-list can't be created because of permission problems, it's X-Git-Tag: 1.1.rc4~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b16c5adb08f16484dd3b6bccc6f42a49ead51af5;p=thirdparty%2Fdovecot%2Fcore.git 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. --HG-- branch : HEAD --- diff --git a/src/plugins/acl/acl-backend-vfile-acllist.c b/src/plugins/acl/acl-backend-vfile-acllist.c index f5776934b4..320846da93 100644 --- a/src/plugins/acl/acl-backend-vfile-acllist.c +++ b/src/plugins/acl/acl-backend-vfile-acllist.c @@ -203,7 +203,12 @@ int acl_backend_vfile_acllist_rebuild(struct acl_backend_vfile *backend) 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);