lprm doesn't work at all at 4.2bsd (and vplotf as well)
Jaap Akkerhuis
jaap at haring.UUCP
Mon Dec 26 12:01:09 AEST 1983
<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)
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list