(mu_get_homedir): Use EUID to determine user identity.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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); | ... | ... |
-
Please register or sign in to post a comment