/[mailutils]/mailutils/pop3d/apop.c
ViewVC logotype

Diff of /mailutils/pop3d/apop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by gray, Tue Jan 15 21:56:11 2002 UTC revision 1.17 by gray, Mon Jan 21 06:24:45 2002 UTC
# Line 216  pop3d_apop (const char *arg) Line 216  pop3d_apop (const char *arg)
216    if (setuid (pw->pw_uid) == -1)    if (setuid (pw->pw_uid) == -1)
217      return ERR_BAD_LOGIN;      return ERR_BAD_LOGIN;
218    
219    mailbox_name  = calloc (strlen (_PATH_MAILDIR) + 1    mailbox_name  = calloc (strlen (maildir) + 1
220                            + strlen (pw->pw_name) + 1, 1);                            + strlen (pw->pw_name) + 1, 1);
221    sprintf (mailbox_name, "%s/%s", _PATH_MAILDIR, pw->pw_name);    sprintf (mailbox_name, "%s%s", maildir, pw->pw_name);
222    
223    if ((status = mailbox_create (&mbox, mailbox_name)) != 0    if ((status = mailbox_create (&mbox, mailbox_name)) != 0
224        || (status = mailbox_open (mbox, MU_STREAM_RDWR)) != 0)        || (status = mailbox_open (mbox, MU_STREAM_RDWR)) != 0)

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26