]> xenbits.xensource.com Git - libvirt.git/commit
src: switch from fnmatch to g_pattern_match_simple
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 20 Dec 2019 16:02:49 +0000 (16:02 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 3 Jan 2020 15:42:13 +0000 (15:42 +0000)
commitf7df9856842c8c3fd7d52828a33fe396e1a56bea
treefbc03c9ac8e704e14947a25dd06ab2a14f96db1a
parentd0312c584f6b31af0281e0543333745896c6bb0a
src: switch from fnmatch to g_pattern_match_simple

The g_pattern_match function_simple is an acceptably close
approximation of fnmatch for libvirt's needs.

In contrast to fnmatch(), the '/' character can be matched
by the wildcards, there are no '[...]' character ranges and
'*' and '?' can not be escaped to include them literally in
a pattern.

Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_firmware.c
src/remote/libvirtd.conf.in
src/rpc/virnetsaslcontext.c
src/rpc/virnettlscontext.c
src/util/virlog.c
tests/virconfdata/libvirtd.conf
tests/virconfdata/libvirtd.out
tools/virt-login-shell-helper.c