Path: utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!bionet!agate!shelby!neon!CS.Stanford.EDU!farhad From: farhad@CS.Stanford.EDU (Farhad Shakeri) Newsgroups: comp.unix.ultrix Subject: Tiny bug in lockd. Dies if hostname too long. Message-ID: <1990Jul20.160851.2846@Neon.Stanford.EDU> Date: 20 Jul 90 16:08:51 GMT Sender: news@Neon.Stanford.EDU (USENET News System) Reply-To: farhad@CS.Stanford.EDU (Farhad Shakeri) Organization: Computer Science Department, Stanford University Lines: 21 I just installed a new cluster of 3100s and a 5400 as its server. I had to modify the source for lockd to make it work. 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. All of our hostnames have .Stanford.EDU at their end . Is this problem fixed in 4.0 ? Ultrix is not the only OS. We discoverd this problem in Sun OS too (I do not know about their 4.1 yet) . +----------------------------------------------------+ / Farhad Shakeri E-Mail: / / Stanford University farhad@Tehran.Stanford.EDU / / Computer Science Dept. / +----------------------------------------------------+