[libvirt] [PATCH 8/8] util: pidfile: Replace 'areadlink' by 'g_file_read_link'

Peter Krempa pkrempa at redhat.com
Wed Nov 13 13:07:09 UTC 2019


Use the glib function rather than gnulib.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/util/virpidfile.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/util/virpidfile.c b/src/util/virpidfile.c
index 4a800b6528..5d1a820cd1 100644
--- a/src/util/virpidfile.c
+++ b/src/util/virpidfile.c
@@ -35,7 +35,6 @@
 #include "virlog.h"
 #include "virerror.h"
 #include "c-ctype.h"
-#include "areadlink.h"
 #include "virstring.h"
 #include "virprocess.h"

@@ -247,7 +246,7 @@ int virPidFileReadPathIfAlive(const char *path,
      * "$procpath (deleted)".  Read that link, remove the " (deleted)"
      * part, and see if it has the same canonicalized name as binpath.
      */
-    if (!(procLink = areadlink(procPath)))
+    if (!(procLink = g_file_read_link(procPath, NULL)))
         return -1;

     procLinkLen = strlen(procLink);
-- 
2.23.0




More information about the libvir-list mailing list