提交 5ff6eb5d 编写于 作者: P Peter Krempa

util: pidfile: Replace 'areadlink' by 'g_file_read_link'

Use the glib function rather than gnulib.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 f95ef924
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include "virlog.h" #include "virlog.h"
#include "virerror.h" #include "virerror.h"
#include "c-ctype.h" #include "c-ctype.h"
#include "areadlink.h"
#include "virstring.h" #include "virstring.h"
#include "virprocess.h" #include "virprocess.h"
...@@ -247,7 +246,7 @@ int virPidFileReadPathIfAlive(const char *path, ...@@ -247,7 +246,7 @@ int virPidFileReadPathIfAlive(const char *path,
* "$procpath (deleted)". Read that link, remove the " (deleted)" * "$procpath (deleted)". Read that link, remove the " (deleted)"
* part, and see if it has the same canonicalized name as binpath. * 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; return -1;
procLinkLen = strlen(procLink); procLinkLen = strlen(procLink);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册