]> git.ipfire.org Git - thirdparty/libvirt.git/commit
access: fix incorrect addition to virAccessPermNetwork
authorLaine Stump <laine@redhat.com>
Thu, 15 Aug 2019 20:34:21 +0000 (16:34 -0400)
committerLaine Stump <laine@redhat.com>
Fri, 16 Aug 2019 15:56:56 +0000 (11:56 -0400)
commit8d6eaf5e099dab8400aa76bcc9a0ac74ff6f46e1
treeb2363d94abae71316466ae43c6668bb3c5b16d80
parent4b58fdf280ad806966369d849e80e98b5097f8b1
access: fix incorrect addition to virAccessPermNetwork

Commit e69444e17 (first appeared in libvirt-5.5.0) added the new value
"VIR_ACCESS_PERM_NETWORK_SEARCH_PORTS" to the virAccessPerNetwork
enum, and also the string "search_ports" to the VIR_ENUM_IMPL() macro
for that enum. Unfortunately, the enum value was added in the middle
of the list, while the string was added to the end of the
VIR_ENUM_IMPL().

This patch corrects that error by moving the new value to the end of
the enum definition, so that the order matches that of the string
list.

Resolves: https://bugzilla.redhat.com/1741428

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/access/viraccessperm.h