Commit 1a277acb 1a277acb8d9618b3f6b1fdbca14f6229b69f6e5d by Sergey Poznyakoff

(mu_get_homedir): Use EUID to determine user identity.

1 parent 100e49a3
......@@ -103,7 +103,7 @@ mu_get_homedir (void)
homedir = strdup (homedir);
else
{
struct mu_auth_data *auth = mu_get_auth_by_uid (getuid ());
struct mu_auth_data *auth = mu_get_auth_by_uid (geteuid ());
if (!auth)
return NULL;
homedir = strdup (auth->dir);
......