X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Faliasbr.c;h=493725105ef5d59875ffa6edd5b75ac5b9b07c04;hb=8e79ce1919d9cf54f101a812e0fd70a33286b9f3;hp=d8350f9dfa6f55b74106461725d813c7bedb44b2;hpb=d8a78332490cd5a5928d6a23d06797ca9caa2b45;p=mmh diff --git a/uip/aliasbr.c b/uip/aliasbr.c index d8350f9..4937251 100644 --- a/uip/aliasbr.c +++ b/uip/aliasbr.c @@ -46,7 +46,6 @@ static char *getalias (char *); static void add_aka (struct aka *, char *); static struct aka *akalloc (char *); static struct home *hmalloc (struct passwd *); -struct home *seek_home (char *); /* Do mh alias substitution on 's' and return the results. */ @@ -577,36 +576,3 @@ hmalloc (struct passwd *pw) return p; } - - -struct home * -seek_home (char *name) -{ - register struct home *hp; - struct passwd *pw; - char lname[32]; - unsigned char *c; - char *c1; - - for (hp = homehead; hp; hp = hp->h_next) - if (!mh_strcasecmp (name, hp->h_name)) - return hp; - - /* - * The only place where there might be problems. - * This assumes that ALL usernames are kept in lowercase. - */ - for (c = name, c1 = lname; - *c && (c1 - lname < (int) sizeof(lname) - 1); - c++, c1++) { - if (isalpha(*c) && isupper(*c)) - *c1 = tolower (*c); - else - *c1 = *c; - } - *c1 = '\0'; - if ((pw = getpwnam(lname))) - return(hmalloc(pw)); - - return NULL; -}