[dovecot-cvs] dovecot/src/plugins/acl acl-backend.c,1.2,1.2.2.1

cras at dovecot.org cras at dovecot.org
Sun Jun 25 00:03:14 EEST 2006


Update of /var/lib/cvs/dovecot/src/plugins/acl
In directory talvi:/tmp/cvs-serv6170

Modified Files:
      Tag: branch_1_0
	acl-backend.c 
Log Message:
Don't crash when checking "owner" ACLs with shared namespaces.



Index: acl-backend.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/acl/acl-backend.c,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- acl-backend.c	28 Feb 2006 12:38:20 -0000	1.2
+++ acl-backend.c	24 Jun 2006 21:03:12 -0000	1.2.2.1
@@ -44,7 +44,8 @@
 	backend->v = acl_backend_vfile;
 	backend->storage = storage;
 	backend->username = p_strdup(backend->pool, acl_username);
-	backend->owner_username = p_strdup(backend->pool, owner_username);
+	backend->owner_username = owner_username == NULL ? "" :
+		p_strdup(backend->pool, owner_username);
 	backend->group_count = group_count;
 
 	storage_owner = owner_username != NULL &&



More information about the dovecot-cvs mailing list