]> xenbits.xensource.com Git - libvirt.git/commit
Replace AbsPath judgement method with g_path_is_absolute()
authorLuke Yue <lukedyue@gmail.com>
Tue, 20 Apr 2021 04:44:12 +0000 (12:44 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 21 Apr 2021 08:02:09 +0000 (10:02 +0200)
commit6e91cbfdad88cbc85053002e548cde747d21e15c
tree2e9c65ed85721ab36e2ed8d2ab43ae64a9a295d2
parent1c34211c22de28127a509edbf2cf2f44cb0d891e
Replace AbsPath judgement method with g_path_is_absolute()

The g_path_is_absolute() considers more situations
than just a simply "path[0] == '/'".

Related issue: https://gitlab.com/libvirt/libvirt/-/issues/12

Signed-off-by: Luke Yue <lukedyue@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
18 files changed:
src/conf/backup_conf.c
src/conf/snapshot_conf.c
src/conf/storage_source_conf.c
src/libxl/xen_common.c
src/lxc/lxc_cgroup.c
src/lxc/lxc_native.c
src/qemu/qemu_block.c
src/qemu/qemu_cgroup.c
src/qemu/qemu_command.c
src/storage_file/storage_source.c
src/storage_file/storage_source_backingstore.c
src/util/vircgroup.c
src/util/vircommand.c
src/vbox/vbox_snapshot_conf.c
src/vmware/vmware_conf.c
src/vmware/vmware_driver.c
tests/virtestmock.c
tools/virt-login-shell-helper.c