retitle 328440 NIS broken with bash, ksh, tcsh and sash thanks On Thu, Oct 06, 2005 at 10:51:58PM +0300, Alexander Gattin wrote: > If I have "[EMAIL PROTECTED]" entry in /etc/passwd, tilde expansion > crashes bash:
I need to rephrase -- it's rather "tilde completion" that crashes bash, not "tilde expansion", because the latter works for fully/correctly specified NIS name and crashes only for non-existent names. > > [EMAIL PROTECTED]:~$ ls ~z > > bash: nss_nis/nis-netgrp.c:79: _nss_nis_setnetgrent: Assertion > > `malloc_usable_size (netgrp->data) >= len + 1' failed. > > Aborted (core dumped) > > although getent works OK: > > [EMAIL PROTECTED]:~$ getent passwd zhinis > > zhinis:x:2004:2004:NIS test user Z:/home/zhinis:/bin/zsh4 > > [EMAIL PROTECTED]:~$ ls ~zhinis > > ls: /home/zhinis: No such file or directory -- WBR, xrgtn -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]