]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
acl: Give a better error message when trying to update ACLs for object without local...
authorTimo Sirainen <tss@iki.fi>
Wed, 4 Aug 2010 16:19:19 +0000 (17:19 +0100)
committerTimo Sirainen <tss@iki.fi>
Wed, 4 Aug 2010 16:19:19 +0000 (17:19 +0100)
src/plugins/acl/acl-backend-vfile.c

index aab7ab5bc716cfd47455dacc0d7689fd3c458fd5..5ddf92cf3905f5150d38974a7e65d4808e59c4e6 100644 (file)
@@ -885,6 +885,12 @@ static int acl_backend_vfile_update_begin(struct acl_object_vfile *aclobj,
        gid_t gid;
        int fd;
 
+       if (aclobj->local_path == NULL) {
+               i_error("Can't update acl object '%s': No local acl file path",
+                       aclobj->aclobj.name);
+               return -1;
+       }
+
        /* first lock the ACL file */
        mailbox_list_get_permissions(_aclobj->backend->list, _aclobj->name,
                                     &mode, &gid, &gid_origin);