* Check for NIS
@ 2000-08-22 11:47 Andrej Borsenkow
2000-08-22 18:07 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Andrej Borsenkow @ 2000-08-22 11:47 UTC (permalink / raw)
To: ZSH workers mailing list
We check for NIS by testing return value of ypcat. I am not sure it is correct
way to do it (actually, I am pretty sure, it is the wrong way). ypcat may fail
if system currently is not configured for NIS; or no server temporary is
available. It has nothing to do with having needed functions and headers that
we actually intend to check for.
-andrej
Have a nice DOS!
B >>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Check for NIS
2000-08-22 11:47 Check for NIS Andrej Borsenkow
@ 2000-08-22 18:07 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2000-08-22 18:07 UTC (permalink / raw)
To: Andrej Borsenkow, ZSH workers mailing list
On Aug 22, 3:47pm, Andrej Borsenkow wrote:
} Subject: Check for NIS
}
} We check for NIS by testing return value of ypcat. I am not sure it
} is correct way to do it (actually, I am pretty sure, it is the wrong
} way). ypcat may fail if system currently is not configured for NIS;
} or no server temporary is available. It has nothing to do with having
} needed functions and headers that we actually intend to check for.
The reason the test is done this way is that if the functions are present
but the system is not configured, then it becomes very slow for zsh to
attempt YP and then fall back on other methods.
The intent is to make a best guess at whether YP is configured, and skip
it entirely if not, even if the libraries to enable it might be present.
Yes, the test may be wrong if the server is temporarily unavailable, but
this was the best compromise we could come up with at the time.
There should be some discussion of this in the zsh-workers archive from
about three years ago (maybe longer).
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-08-22 18:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-22 11:47 Check for NIS Andrej Borsenkow
2000-08-22 18:07 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).