Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830919); site haring.UUCP Path: utzoo!linus!philabs!mcvax!haring!jaap From: jaap@haring.UUCP (Jaap Akkerhuis) Newsgroups: net.bugs.4bsd Subject: lprm doesn't work at all at 4.2bsd (and vplotf as well) Message-ID: <127@haring.UUCP> Date: Sun, 25-Dec-83 21:01:09 EST Article-I.D.: haring.127 Posted: Sun Dec 25 21:01:09 1983 Date-Received: Tue, 27-Dec-83 00:22:05 EST Organization: CWI, Amsterdam Lines: 45 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)