Skip to content
Snippets Groups Projects
Commit 5f64bed6 authored by Cédric Le Goater's avatar Cédric Le Goater Committed by Michael Tokarev
Browse files

vfio/container: Replace basename with g_path_get_basename

g_path_get_basename() is a portable utility function that has the
advantage of not modifing the string argument. It also fixes a compile
breakage with the Musl C library reported in [1].

[1] https://lore.kernel.org/all/20231212010228.2701544-1-raj.khem@gmail.com/



Reported-by: default avatarKhem Raj <raj.khem@gmail.com>
Reviewed-by: default avatarEric Auger <eric.auger@redhat.com>
Reviewed-by: default avatarZhao Liu <zhao1.liu@intel.com>
Reviewed-by: default avatarZhenzhong Duan <zhenzhong.duan@intel.com>
Signed-off-by: default avatarCédric Le Goater <clg@redhat.com>
(cherry picked from commit 213ae3ffda463c0503e39e0cf827511b5298c314)
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent 0bf355e6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment