+ /*
+ ** Make name canonical.
+ */
+
+ for (p = name; *p != '\0'; p++)
+ {
+ if (*p == (SPACESUB & 0177) || *p == '_')
+ *p = ' ';
+ }
+
+ setpwent();
+ while ((pw = getpwent()) != NULL)
+ {
+ extern bool sameword();
+ char buf[MAXNAME];
+
+ if (strcmp(pw->pw_name, name) == 0)
+ return (pw);
+ fullname(pw, buf);
+ if (index(buf, ' ') != NULL && sameword(buf, name))
+ {
+ if (Verbose)
+ message(Arpa_Info, "sending to %s <%s>",
+ buf, pw->pw_name);
+ return (pw);
+ }
+ }
+ return (NULL);