1/* 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 266 unchanged lines hidden (view full) --- 275 276#ifdef YP 277static int _listmatch(list, group, len) 278char *list, *group; 279int len; 280{ 281 char *ptr = list; 282 |
283 while ( (ptr = strstr(ptr, group)) ) { |
284 285 ptr += strlen(group); 286 287 if (*ptr == ',' || *ptr == '\0') 288 return(1); 289 } 290 291 return(0); --- 20 unchanged lines hidden (view full) --- 312} 313#endif 314 315/* 316 * Search for a match in a netgroup. 317 */ 318int 319innetgr(group, host, user, dom) |
320 const char *group, *host, *user, *dom; |
321{ 322 char *hst, *usr, *dm; 323#ifdef YP 324 char *result; 325 int resultlen; 326 int rv; 327#endif 328 /* Sanity check */ --- 283 unchanged lines hidden --- |