eric@picard.sbi.com (Eric Ho) (04/29/91)
If one can put +@ directives in a YP master's /etc/passwd file (or whatever file one chooses to build its YP passwd maps), would this creates a mutually recursive loop or does Sun's C library routines smart enough to detect and resolve this ? e.g. A YP master called Eng-Sparc is in say the Engineering netgroup and there is another YP master machine called Fin-Motorola is in say the Finance netgroup. Further assume that both machines build their YP passwd maps from their local /etc/passwd files. Now, what if Eng-Sparc's /etc/passwd file contains +@Finance and Fin-Motorola's /etc/passwd file contains +@Engineering. Would this creates a loop when one is calling getpwnam() et al ? Note that this is a simple single cycle (tight) loop, one can creates a more complicated directed graph that has loops. I guess that it all depends on what information getpwnam() gets when it approaches the +@ line/directive. Any info/pointers appreciated. + Eric Ho Email: eric@sbi.com