Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!haven!decuac!lemans.dec.com!shlump.nac.dec.com!tkou02.enet.dec.com!diamond From: diamond@tkou02.enet.dec.com (diamond@tkovoa) Newsgroups: comp.unix.ultrix Subject: Re: Tiny bug in lockd. Dies if hostname too long. Message-ID: <1866@tkou02.enet.dec.com> Date: 23 Jul 90 05:32:20 GMT References: <1990Jul20.160851.2846@Neon.Stanford.EDU> Reply-To: diamond@tkou02.enet.dec.com (diamond@tkovoa) Organization: Digital Equipment Corporation Japan , Tokyo Lines: 16 In article <1990Jul20.160851.2846@Neon.Stanford.EDU> farhad@CS.Stanford.EDU (Farhad Shakeri) writes: >The problem with lockd was that in prot_libr.c the buffer >hostname was limited to 20 characters (line 37 3.1c source) >and the same for gethostname() function (line 73). When I >doubled these sizes, everything worked. I would #include and use the macro MAXHOSTNAMELEN instead of an arbitrary number. MAXHOSTNAMELEN is 64 on an Ultrix 4.0 machine in our department. Can't answer your other questions; it sounds like you have more source code than our department has. -- Norman Diamond, Nihon DEC diamond@tkou02.enet.dec.com This is me speaking. If you want to hear the company speak, you need DECtalk.