zsh-workers
 help / color / mirror / code / Atom feed
* ~username<TAB> problem on SunOS
@ 1995-08-16 13:41 Zoltan Hidvegi
  0 siblings, 0 replies; only message in thread
From: Zoltan Hidvegi @ 1995-08-16 13:41 UTC (permalink / raw)
  To: zsh-workers

At least two people reported that ~username completion causes SEGV on machines
with NIS.  It turned out that this problem only occurs on SunOS 4.1.3 but it
doesn't on SunOS 4.1.2.  The SEGV happens in the yp_all libc function.  Zsh
used yp_all to prefech all usernames from the NIS map.  Other shells probably
do not use this function (bash, tcsh).  I noticed that zsh can complete
usernames much faster that bash or tcsh and it is probably because zsh uses
yp_all.  If you use SunOS 4.1.3 and you experience such problems, either try
to upgrade or downgrade your OS to fix the libc bug, or get a statically
linked binary which compiled with a working libc.  The bug may disappear if
you undefine the HAVE_NIS macro in config.h.  I think username completion will
work even if HAVE_NIS undefined but it will be much slower (I didn't try that
so it is possible that it doesn't work at all).

It is known that some libc.so.1.9.x versions have this bug but libc.so.1.8.1
doesn't.

Zoltan


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-08-16 13:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-08-16 13:41 ~username<TAB> problem on SunOS Zoltan Hidvegi

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).