]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virfile: Replace AbsPath judgement method with g_path_is_absolute()
authorLuke Yue <lukedyue@gmail.com>
Mon, 12 Apr 2021 14:04:27 +0000 (22:04 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 13 Apr 2021 11:08:42 +0000 (13:08 +0200)
commitdfc0c11054963f7eae31f6aa89f1506bf0bcfb27
tree3e398b7fdee441e1ba9a76226cace0360be80732
parentf0e1e31bf7fe842b917ddcdcff985bdd832a7bef
virfile: 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>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virfile.c