Bug in users command

John F Haugh II jfh at rpp386.cactus.org
Sat Jan 19 03:18:10 AEST 1991


In article <1126:Jan1811:17:4091 at kramden.acf.nyu.edu> brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
>Two other obvious bugs: first, the number of users is limited to 200;
>second, scmp() appears to take the wrong argument types. Here is a
>public-domain version that fixes these problems. This is derived from
>the public-domain u.c published on comp.sources.unix as part of the pty
>package; neither program was derived from Berkeley source.

Look at the array that is being sorted.  It will be pretty obvious
once you look at the type of that object that scmp is being called
properly.  And obviously, since the sort does work, it is being
called with the correct values.
-- 
John F. Haugh II                             UUCP: ...!cs.utexas.edu!rpp386!jfh
Ma Bell: (512) 832-8832                           Domain: jfh at rpp386.cactus.org
"While you are here, your wives and girlfriends are dating handsome American
 movie and TV stars. Stars like Tom Selleck, Bruce Willis, and Bart Simpson."



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