Index: squid/src/cache_cf.c diff -c squid/src/cache_cf.c:1.396.2.12 squid/src/cache_cf.c:1.396.2.13 *** squid/src/cache_cf.c:1.396.2.12 Wed Jan 8 22:09:49 2003 --- squid/src/cache_cf.c Wed Feb 5 22:01:07 2003 *************** *** 1544,1550 **** p = xcalloc(1, sizeof(cachemgr_passwd)); p->passwd = passwd; p->actions = actions; ! for (P = head; *P; P = &(*P)->next); *P = p; } --- 1544,1569 ---- p = xcalloc(1, sizeof(cachemgr_passwd)); p->passwd = passwd; p->actions = actions; ! for (P = head; *P; P = &(*P)->next) { ! /* ! * See if any of the actions from this line already have a ! * password from previous lines. The password checking ! * routines in cache_manager.c take the the password from ! * the first cachemgr_passwd struct that contains the ! * requested action. Thus, we should warn users who might ! * think they can have two passwords for the same action. ! */ ! wordlist *w; ! wordlist *u; ! for (w = (*P)->actions; w; w = w->next) { ! for (u = actions; u; u = u->next) { ! if (strcmp(w->key, u->key)) ! continue; ! debug(0, 0) ("WARNING: action '%s' (line %d) already has a password\n", ! u->key, config_lineno); ! } ! } ! } *P = p; }