Commit d5a0d843 d5a0d8431b1a68999740a96996cc267c3b9391a3 by Sergey Poznyakoff

Use maildir instead of _PATH_MAILDIR

1 parent ec5d300b
...@@ -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)
......