mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +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 *
|
||||
virGetUserDirectory(void)
|
||||
{
|
||||
return virGetUserDirectoryByUID(geteuid());
|
||||
return g_strdup(g_get_home_dir());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user