ruptime reports 0 users (it's *worse*)

Wombat rsk at pucc-j
Fri Dec 6 06:14:01 AEST 1985


In article <5444 at allegra.UUCP> mp at 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 at pur-ee.uucp rsk at purdue.uucp rsk at purdue-asc.arpa



More information about the Comp.bugs.4bsd.ucb-fixes mailing list