Use maildir instead of _PATH_MAILDIR
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -216,9 +216,9 @@ pop3d_apop (const char *arg) | ... | @@ -216,9 +216,9 @@ pop3d_apop (const char *arg) |
216 | if (setuid (pw->pw_uid) == -1) | 216 | if (setuid (pw->pw_uid) == -1) |
217 | return ERR_BAD_LOGIN; | 217 | return ERR_BAD_LOGIN; |
218 | 218 | ||
219 | mailbox_name = calloc (strlen (_PATH_MAILDIR) + 1 | 219 | mailbox_name = calloc (strlen (maildir) + 1 |
220 | + strlen (pw->pw_name) + 1, 1); | 220 | + strlen (pw->pw_name) + 1, 1); |
221 | sprintf (mailbox_name, "%s/%s", _PATH_MAILDIR, pw->pw_name); | 221 | sprintf (mailbox_name, "%s%s", maildir, pw->pw_name); |
222 | 222 | ||
223 | if ((status = mailbox_create (&mbox, mailbox_name)) != 0 | 223 | if ((status = mailbox_create (&mbox, mailbox_name)) != 0 |
224 | || (status = mailbox_open (mbox, MU_STREAM_RDWR)) != 0) | 224 | || (status = mailbox_open (mbox, MU_STREAM_RDWR)) != 0) | ... | ... |
-
Please register or sign in to post a comment