hal/hald/linux printer_class_device.c,1.7,1.8

Joe Shaw joe at pdx.freedesktop.org
Thu Jun 3 14:56:38 PDT 2004


Update of /cvs/hal/hal/hald/linux
In directory pdx:/tmp/cvs-serv20397/hald/linux

Modified Files:
	printer_class_device.c 
Log Message:
2004-06-03  Joe Shaw  <joeshaw at novell.com>

	* hald/linux/printer_class_device.c (printer_class_device_accept):
	Reject class devices that have no sysdevice.

Index: printer_class_device.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/printer_class_device.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- a/printer_class_device.c	30 Apr 2004 20:59:08 -0000	1.7
+++ b/printer_class_device.c	3 Jun 2004 21:56:36 -0000	1.8
@@ -67,6 +67,9 @@
 {
 	int lp_number;
 
+	if (class_device->sysdevice == NULL)
+		return FALSE;
+
 	if (sscanf (class_device->name, "lp%d", &lp_number) == 1)
 		return TRUE;
 





More information about the hal-commit mailing list