[cups.bugs] [LOW] STR #1562: [Patch] linux: serial backend find too many ports

Bart Hargers bart.hartgers at gmail.com
Fri Apr 14 05:02:10 PDT 2006


[STR New]

When called without arguments, the serial backend on linux lists all
potential serial ports instead of all present serial ports. Many of those
ports do not correspond to actual hardware.

This happens because under Linux additional serial port hardware is setup
using the device node. So this node needs to be present for any potential
port, and serial finds it and lists it.

I fixed this by using an (Linux-specific) ioctl to check whether the
serial port was setup, and to skip it if it is not. This only skips ports
that are not usable. Ports that do not support the ioctl (i.e. are always
setup/present) are listed as before.

Please (feel free to) apply!

Patch is against 1.2rc2

Link: http://www.cups.org/str.php?L1562
Version: 1.2rc2
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cups-serial-backend-linux-12rc2.patch
URL: <https://lists.cups.org/pipermail/cups/attachments/20060414/d1207049/attachment.ksh>


More information about the cups mailing list