From cbb69e8b74e88a8d744bb4a60fb62ab2c8e6a4a6 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 4 Aug 2010 17:19:19 +0100 Subject: [PATCH] acl: Give a better error message when trying to update ACLs for object without local path. --- src/plugins/acl/acl-backend-vfile.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/acl/acl-backend-vfile.c b/src/plugins/acl/acl-backend-vfile.c index aab7ab5bc7..5ddf92cf39 100644 --- a/src/plugins/acl/acl-backend-vfile.c +++ b/src/plugins/acl/acl-backend-vfile.c @@ -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); -- 2.47.3