🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7621

+@ line directives in a YP master's /etc/passwd file.

#7621
From: Eric Ho
Date: Sun, 28 Apr 1991 19:20
25 lines
1603 bytes
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
Technical Details
Message-ID: <2675@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: eric@picard.sbi.com (Eric Ho)
Newsgroups: comp.sys.sun
Subject: +@ line directives in a YP master's /etc/passwd file.
Keywords: Miscellaneous
Message-ID: <2675@brchh104.bnr.ca>
Date: 28 Apr 91 19:20:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 26
Approved: Sun-Spots@rice.edu
X-Original-Date: 25 Apr 91 14:32:08 GMT
X-Sun-Spots-Digest: Volume 10, Issue 91, message 15
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu