[PATCH 0/3] Replace some libvirt handling functions with GLib APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Note that the g_find_program_in_path() will search file in current dir
when PATH env is not set, while virFindFileInPath() won't.

The virFileAbsPath() could be replaced by g_canonicalize_file() when not
take the return value into account, and it just simply return 0 now, so
maybe remove the function is a better choice?

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

Luke Yue (3):
  virfile: Use g_build_filename() when building paths
  virfile: Simplify virFindFileInPath() with g_find_program_in_path()
  virfile: Use g_canonicalize_file() to simplify virFileAbsPath()

 src/util/virfile.c | 71 +++++++++++++---------------------------------
 1 file changed, 19 insertions(+), 52 deletions(-)

-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux