]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
If dovecot-acl-list can't be created because of permission problems, it's
authorTimo Sirainen <tss@iki.fi>
Thu, 20 Mar 2008 13:09:30 +0000 (15:09 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 20 Mar 2008 13:09:30 +0000 (15:09 +0200)
probably because the account is read-only, so don't log an error.

--HG--
branch : HEAD

src/plugins/acl/acl-backend-vfile-acllist.c

index f5776934b45f7dc789a14010fe2bbc99780919a5..320846da93bb4438ebed15b84dd6bc2d48a776fa 100644 (file)
@@ -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);