[620] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Red Hat 4.0: rpc.mountd and NYS

daemon@ATHENA.MIT.EDU (Miguel de Icaza)
Wed Oct 23 17:16:00 1996

To: redhat-list@redhat.com
CC: sog@msg.com.mx
From: Miguel de Icaza <miguel@nuclecu.unam.mx>
Date: 23 Oct 1996 15:59:55 -0500
In-Reply-To: Erik Troan's message of Wed, 23 Oct 1996 12:16:48 -0400 (EDT)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


Hello guys,

   I have noticed that with my Red Hat 4.0 system, if I export a
directory to the world with nfs (I have included my /etc/exports file
at the end) and the system is running NIS (with yp.conf included at
the end) the rpc.mountd will crash every time a client tries to mount
the exported directory.

   The problem is that this is the machine I use as a Red Hat mirror,
and from which people at the university install Red Hat over nfs.  
   
   I have included a workaround patch for the nfs programs that will
fix this, but obviously, the right fix would be to figure out what is
wrong with the libc.

   Gethostbyaddr is returning an empty h_name for a host that has a
valid name on the DNS, but it is filling correctly h_aliases in the
hostent structure.  

Best wishes,
Miguel.

/etc/yp.conf:
domainname nuclecu.unam.mx
ypserver some.ip

/etc/exports:
/export (ro,insecure)

--- nfs-server-2.2beta16/auth.c	Wed Oct 23 14:55:17 1996
+++ nfs-server-2.2beta16/auth.c-old	Wed Oct 23 14:52:34 1996
@@ -211,7 +211,7 @@
 		return ncp;
 	}
 
-	if (hp != NULL && hp->h_name [0]) {
+	if (hp != NULL) {
 		nfs_client **cpp;
 		char	**ap;
 


--
  PLEASE read the Red Hat FAQ, Tips, HOWTO and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-HOWTO 
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post