bug in viewprt?
Jay R. Ashworth
jra at baylink.com
Wed May 12 09:52:31 PDT 2004
I believe I've discovered a design deficiency in viewprt.
Apparently, in certain circumstances, filepro creates -p output files
which are not readable by the general public. For some reason, while
the less command spawned by viewprt can read them (it apparently
inherits viewprt's EUID), lp pukes because it cannot (a permission
error). I believe this is because it's the lp *unspooler* program,
which runs as user lp, that tries to open said file. I saw two
possible solutions: chmod the temp file inside viewprt, or modify
lp -n $print $dir/$file
into
cat $dir/$file | lp -n $print
I chose the latter for security reasons, though it does make the output
of lpstat... well, no, on SCO it won't at least.
In any event, if no one contends this isn't a bug, I'm going to sumbit
it.
Cheers,
-- jra
--
Jay R. Ashworth jra at baylink.com
Member of the Technical Staff Baylink RFC 2100
The Suncoast Freenet The Things I Think
Tampa Bay, Florida http://baylink.pitas.com +1 727 647 1274
"They had engineers in my day, too." -- Perry Vance Nelson
More information about the Filepro-list
mailing list