# HG changeset patch # User Richard M. Stallman # Date 705269597 0 # Node ID 52d0ff65926590d06e4267646e47bb0f42ae5912 # Parent 379b94c9f29e03c170d2faac4184256458b9c2c2 *** empty log message *** diff -r 379b94c9f29e -r 52d0ff659265 lib-src/movemail.c --- a/lib-src/movemail.c Wed May 06 03:42:36 1992 +0000 +++ b/lib-src/movemail.c Thu May 07 20:13:17 1992 +0000 @@ -392,6 +392,7 @@ #include #include #include +#include #ifdef USG #include @@ -427,6 +428,9 @@ 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 @@ } 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);