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:
Fabiano Fidêncio 2019-12-17 16:24:38 +01:00
parent e67ccd3cf8
commit 850fb89a43

View File

@ -582,7 +582,7 @@ virGetHostnameQuiet(void)
char *
virGetUserDirectory(void)
{
return virGetUserDirectoryByUID(geteuid());
return g_strdup(g_get_home_dir());
}