Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/15/85; site pucc-j Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!pucc-j!rsk From: rsk@pucc-j (Wombat) Newsgroups: net.bugs.4bsd Subject: Re: ruptime reports 0 users (it's *worse*) Message-ID: <629@pucc-j> Date: Thu, 5-Dec-85 15:14:01 EST Article-I.D.: pucc-j.629 Posted: Thu Dec 5 15:14:01 1985 Date-Received: Sat, 7-Dec-85 04:50:01 EST References: <5444@allegra.UUCP> Reply-To: rsk@pucc-j.UUCP (Wombat) Organization: Purdue University Lines: 18 In article <5444@allegra.UUCP> mp@allegra.UUCP (Mark Plotnick) writes: >ruptime may claim that a machine with lots of users on it has 0 users. >This is because it reads only the first 1K bytes of a whod file into a >buffer, and assumes that it can read an array of structures backwards >from the end of the buffer. What it gets, if the whod file is big enough, >is a bunch of garbled structures. Mark's fix is correct, and does fix the problem with the reading of the whod file (Thanks Mark!) but it doesn't attack the next problem, which is that (apparently) the UDP packetsize winds up restricting the maximum number of users that will be reported to 41; the largest file that will be created in /usr/spool/rwho is 1044 bytes. Gerrit Huizenga of our staff pointed out that one of our machines had 44 users on it while "ruptime -a" insisted that it only had 41... Does anyone have a fix for this? -- Rich Kulawiec rsk@pur-ee.uucp rsk@purdue.uucp rsk@purdue-asc.arpa