]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virfile: Use g_build_filename() when building paths
authorLuke Yue <lukedyue@gmail.com>
Mon, 31 May 2021 01:48:22 +0000 (09:48 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 4 Jun 2021 10:30:57 +0000 (12:30 +0200)
commit94c7a452a1abfce5a286ccd31c6d308da96ccca9
treece8ba13642608edcddecda179002331fb6a7e5a5
parent56fbabf1a1e272c6cc50adcb603996cf8e94ad08
virfile: Use g_build_filename() when building paths

The g_build_filename() would decide which separator
to use instead of hardcoding in g_strdup_printf().

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

Signed-off-by: Luke Yue <lukedyue@gmail.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virfile.c