jaap@haring.UUCP (Jaap Akkerhuis) (12/26/83)
<Intentionly non-blanc line, fix the news programs, please> Lprm didn't work correctly, when we got our distribution for the VAX. Index: usr.lib/lprm 4.2BSD Description: You would get after: $ print /etc/passwd $ lpq lp is ready & printing Rank Owner Job Files Total Size active jaap 219 /etc/passwd 5790 bytes $ lprm jaap dfa219mcvax dequeued cfa219mcvax dequeued /usr/lib/lpd: mcvax: unknown printer lprm: lp: cannot restart printer daemon (Assumed is that the log file is /dev/console, and you are doing this on the console...) Caused by: rmjob tries to restart the daemon with startdaemon(host), instead of startdaemon(printer). Fixed by: change the call startdeamon(host) into startdeamon(printer) in rmjob.c Since we are talking about the spooler things, here is another one: Index: usr.bin/lpr/vplotf.c Description: The vplotf filter produces a square instaed of a circle Fixed by: The definition of labs(a) needs some more brackets, else an if statement will do something, what it is clearly not supposed to be in the routine circle(). So this is the right define: #define labs(a) ((a) >= 0 ? (a) : -(a)) By the way, has anybody an just as elegant algorithm for generating an arc as the one for a circle? jaap akkerhuis, with thanks to guido (mcvax!guido)