mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
util: Rewrite virGetUserDirectory() using g_get_home_dir()
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
e67ccd3cf8
commit
850fb89a43
@ -582,7 +582,7 @@ virGetHostnameQuiet(void)
|
|||||||
char *
|
char *
|
||||||
virGetUserDirectory(void)
|
virGetUserDirectory(void)
|
||||||
{
|
{
|
||||||
return virGetUserDirectoryByUID(geteuid());
|
return g_strdup(g_get_home_dir());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user