mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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 "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,
|
|||||||
* "$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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user