mirror of https://gitee.com/openkylin/libvirt.git
util: pidfile: Replace 'areadlink' by 'g_file_read_link'
Use the glib function rather than gnulib. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f95ef9248a
commit
5ff6eb5dc7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue