X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Faliasbr.c;h=094b1a568bfabcd46264065059e48b54f68316b5;hp=752cda702202c3faa380a8d844408e2a8a03c22a;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=337338b404931f06f0db2119c9e145e8ca5a9860 diff --git a/uip/aliasbr.c b/uip/aliasbr.c index 752cda7..094b1a5 100644 --- a/uip/aliasbr.c +++ b/uip/aliasbr.c @@ -1,10 +1,10 @@ /* - * aliasbr.c -- new aliasing mechanism - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** aliasbr.c -- new aliasing mechanism +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include #include @@ -22,8 +22,8 @@ struct home *homehead = NULL; struct home *hometail = NULL; /* - * prototypes - */ +** prototypes +*/ int alias (char *); int akvisible (void); void init_pw (void); @@ -364,8 +364,7 @@ addgroup (struct aka *ak, char *grp) break; } #ifdef DBMPWD - if ((pw = getpwnam(gp))) - { + if ((pw = getpwnam(gp))) { hmalloc(pw); add_aka (ak, gp); } @@ -488,22 +487,21 @@ init_pw (void) #ifdef DBMPWD static int init; - if (!init) - { - /* if the list has yet to be initialized */ - /* zap the list, and rebuild from scratch */ - homehead=NULL; - hometail=NULL; - init++; + if (!init) { + /* if the list has yet to be initialized */ + /* zap the list, and rebuild from scratch */ + homehead=NULL; + hometail=NULL; + init++; #endif /* DBMPWD */ - setpwent (); + setpwent (); - while ((pw = getpwent ())) - if (!hmalloc (pw)) - break; + while ((pw = getpwent ())) + if (!hmalloc (pw)) + break; - endpwent (); + endpwent (); #ifdef DBMPWD } #endif /* DBMPWD */ @@ -576,10 +574,11 @@ seek_home (char *name) #ifdef DBMPWD /* - * 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 < sizeof(lname) - 1); c++, c1++) { + ** 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 < sizeof(lname) - 1); + c++, c1++) { if (isalpha(*c) && isupper(*c)) *c1 = tolower (*c); else