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) ...@@ -103,7 +103,7 @@ mu_get_homedir (void)
103 homedir = strdup (homedir); 103 homedir = strdup (homedir);
104 else 104 else
105 { 105 {
106 struct mu_auth_data *auth = mu_get_auth_by_uid (getuid ()); 106 struct mu_auth_data *auth = mu_get_auth_by_uid (geteuid ());
107 if (!auth) 107 if (!auth)
108 return NULL; 108 return NULL;
109 homedir = strdup (auth->dir); 109 homedir = strdup (auth->dir);
......