Use LOG_FACILITY instead of LOG_MAIL.
Use mu_normalize_path().
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -140,13 +140,13 @@ imap4d_login (struct imap4d_command *command, char *arg) | ... | @@ -140,13 +140,13 @@ imap4d_login (struct imap4d_command *command, char *arg) |
140 | pamerror = pam_setcred (pamh, PAM_ESTABLISH_CRED); | 140 | pamerror = pam_setcred (pamh, PAM_ESTABLISH_CRED); |
141 | PAM_ERROR; | 141 | PAM_ERROR; |
142 | pam_end (pamh, PAM_SUCCESS); | 142 | pam_end (pamh, PAM_SUCCESS); |
143 | openlog ("gnu-imap4d", LOG_PID, LOG_MAIL); | 143 | openlog ("gnu-imap4d", LOG_PID, LOG_FACILITY); |
144 | #endif /* USE_LIBPAM */ | 144 | #endif /* USE_LIBPAM */ |
145 | 145 | ||
146 | if (pw->pw_uid > 0 && !mu_virtual_domain) | 146 | if (pw->pw_uid > 0 && !mu_virtual_domain) |
147 | setuid (pw->pw_uid); | 147 | setuid (pw->pw_uid); |
148 | 148 | ||
149 | homedir = util_normalize_path (strdup (pw->pw_dir), "/"); | 149 | homedir = mu_normalize_path (strdup (pw->pw_dir), "/"); |
150 | /* FIXME: Check for errors. */ | 150 | /* FIXME: Check for errors. */ |
151 | chdir (homedir); | 151 | chdir (homedir); |
152 | namespace_init(pw->pw_dir); | 152 | namespace_init(pw->pw_dir); | ... | ... |
-
Please register or sign in to post a comment