acl: Fix acl_remove not to mess up the ACL
authorMarkus Armbruster <armbru@redhat.com>
Tue, 15 Jan 2013 14:24:15 +0000 (15:24 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 16 Jan 2013 00:25:41 +0000 (18:25 -0600)
commitc23c15d30b901bb447cdcada96cae64c0046d146
tree95aad50a067a49578ca3e2dc5dac5b54801cc3f3
parentcc69bda6c97a1c193348eb381f4bffdfd1c8a948
acl: Fix acl_remove not to mess up the ACL

It leaks memory and fails to adjust qemu_acl member nentries.  Future
acl_add become confused: can misreport the position, and can silently
fail to add.

Cc: qemu-stable@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
util/acl.c