2002-Oct-03
send-pr: pkg/18522: gv can execute arbitary shell commands. I read a few security advisories that say that a filename could contain a malicious filename that can be executed by system(). Closed later at night.CUPS doesn't show the parallel port in the list of available connections. I added some debugging to cups-1.1.15/backend/parallel.
$ ./parallel here in NetBSD trying /dev/lpt0 parallel: /dev/lpt0 (16): Device busy trying /dev/lpa0 parallel: /dev/lpa0 (16): Device busy trying /dev/lpt1 parallel: /dev/lpt1 (13): Permission denied trying /dev/lpa1 parallel: /dev/lpa1 (13): Permission denied trying /dev/lpt2 parallel: /dev/lpt2 (13): Permission denied trying /dev/lpa2 parallel: /dev/lpa2 (13): Permission deniedIt does open(device, O_WRONLY). So the problem is error 16, "Device busy". Sometimes, when I turn on or off the printer and run ./parallel at the same time (within the one second), it successfully opens the /dev/lpt0 or /dev/lpa0 (and no "Device busy).
I asked for feedback on netbsd-users, but got none. ** I should send-pr this.
(Also, open(2) manual doesn't mention "EBUSY".)