cause cupsd to crash when a printer was removed.
- The LPDEST and PRINTER environment variables didn't
support instances.
+ - Dropped the "file" backend from the device list that
+ is reported, since it is only available for *testing*
+ and should never be used in a production environment.
+ The file: device can still be used, but it won't show
+ up in the list of devices from lpinfo or the web
+ interface.
+ - Added support for /dev/lpa# parallel ports under *BSD.
CHANGES IN CUPS V1.1.6-3
/*
- * "$Id: parallel.c,v 1.28 2001/02/28 15:19:32 mike Exp $"
+ * "$Id: parallel.c,v 1.29 2001/03/23 13:58:17 mike Exp $"
*
* Parallel port backend for the Common UNIX Printing System (CUPS).
*
close(fd);
printf("direct parallel:%s \"Unknown\" \"Parallel Port #%d\"\n", device, i + 1);
}
+
+ sprintf(device, "/dev/lpa%d", i);
+ if ((fd = open(device, O_WRONLY)) >= 0)
+ {
+ close(fd);
+ printf("direct parallel:%s \"Unknown\" \"Parallel Port #%d\"\n", device, i + 1);
+ }
}
#endif
}
/*
- * End of "$Id: parallel.c,v 1.28 2001/02/28 15:19:32 mike Exp $".
+ * End of "$Id: parallel.c,v 1.29 2001/03/23 13:58:17 mike Exp $".
*/
/*
- * "$Id: devices.c,v 1.13 2001/01/22 15:03:59 mike Exp $"
+ * "$Id: devices.c,v 1.14 2001/03/23 13:58:17 mike Exp $"
*
* Device scanning routines for the Common UNIX Printing System (CUPS).
*
/*
- * We always support the "file" device...
+ * Initialize the device list.
*/
Devices = ippNew();
- ippAddString(Devices, IPP_TAG_PRINTER, IPP_TAG_KEYWORD,
- "device-class", NULL, "file");
- ippAddString(Devices, IPP_TAG_PRINTER, IPP_TAG_TEXT,
- "device-info", NULL, "Disk File");
- ippAddString(Devices, IPP_TAG_PRINTER, IPP_TAG_TEXT,
- "device-make-and-model", NULL, "Unknown");
- ippAddString(Devices, IPP_TAG_PRINTER, IPP_TAG_URI,
- "device-uri", NULL, "file");
-
/*
* Try opening the backend directory...
*/
* Add strings to attributes...
*/
- ippAddSeparator(Devices);
+ if (i < num_devs)
+ ippAddSeparator(Devices);
+
ippAddString(Devices, IPP_TAG_PRINTER, IPP_TAG_KEYWORD,
"device-class", NULL, dev->device_class);
ippAddString(Devices, IPP_TAG_PRINTER, IPP_TAG_TEXT,
/*
- * End of "$Id: devices.c,v 1.13 2001/01/22 15:03:59 mike Exp $".
+ * End of "$Id: devices.c,v 1.14 2001/03/23 13:58:17 mike Exp $".
*/