Commit cecf0f21 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

*** empty log message ***

parent bc98c79c
......@@ -392,6 +392,7 @@ xmalloc (size)
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <pwd.h>
#ifdef USG
#include <fcntl.h>
......@@ -427,6 +428,9 @@ popmail (user, outfile)
register int i;
int mbfi;
FILE *mbf;
struct passwd *pw = (struct passwd *) getpwuid (getuid ());
if (pw == NULL)
fatal ("cannot determine user name");
host = getenv ("MAILHOST");
if (host == NULL)
......@@ -445,7 +449,7 @@ popmail (user, outfile)
}
if (pop_command ("USER %s", user) == NOTOK
|| pop_command ("RPOP %s", user) == NOTOK)
|| pop_command ("RPOP %s", pw->pw_name) == NOTOK)
{
pop_command ("QUIT");
fatal (Errmsg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment