[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/cups/devel cups-str2061.patch,NONE,1.1 cups.spec,1.278,1.279



Author: twaugh

Update of /cvs/dist/rpms/cups/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv5187

Modified Files:
	cups.spec 
Added Files:
	cups-str2061.patch 
Log Message:
* Mon Oct 30 2006 Tim Waugh <twaugh redhat com>
- Fixed support for /dev/ttyUSB devices (bug #212577, STR #2061).
- Resolves: rhbz#212577

cups-str2061.patch:
 serial.c |    8 ++++++++
 1 files changed, 8 insertions(+)

--- NEW FILE cups-str2061.patch ---
--- cups-1.2.5/backend/serial.c.str2061	2006-10-30 16:46:28.000000000 +0000
+++ cups-1.2.5/backend/serial.c	2006-10-30 16:46:30.000000000 +0000
@@ -778,6 +778,14 @@
       printf("serial serial:%s?baud=230400 \"Unknown\" \"USB Serial Port #%d\"\n",
              device, i + 1);
     }
+
+    sprintf(device, "/dev/ttyUSB%d", i);
+    if ((fd = open(device, O_WRONLY | O_NOCTTY | O_NDELAY)) >= 0)
+    {
+	    close(fd);
+	    printf("serial serial:%s?baud=230400 \"Unknown\" \"USB Serial Port #%d\"\n",
+		   device, i + 1);
+    }
   }
 
   for (i = 0; i < 64; i ++)


Index: cups.spec
===================================================================
RCS file: /cvs/dist/rpms/cups/devel/cups.spec,v
retrieving revision 1.278
retrieving revision 1.279
diff -u -r1.278 -r1.279
--- cups.spec	30 Oct 2006 16:34:53 -0000	1.278
+++ cups.spec	30 Oct 2006 16:49:53 -0000	1.279
@@ -41,6 +41,7 @@
 Patch17: cups-relro.patch
 Patch18: cups-directed-broadcast.patch
 Patch19: cups-str2056.patch
+Patch20: cups-str2061.patch
 Patch100: cups-lspp.patch
 Epoch: 1
 Url: http://www.cups.org/
@@ -142,6 +143,7 @@
 %patch17 -p1 -b .relro
 %patch18 -p1 -b .directed-broadcast
 %patch19 -p1 -b .str2056
+%patch20 -p1 -b .str2061
 
 %if %lspp
 %patch100 -p1 -b .lspp
@@ -419,6 +421,7 @@
 
 %changelog
 * Mon Oct 30 2006 Tim Waugh <twaugh redhat com>
+- Fixed support for /dev/ttyUSB devices (bug #212577, STR #2061).
 - Fixed parallel backend (bug #213021, STR #2056).
 
 * Tue Oct 26 2006 Tim Waugh <twaugh redhat com>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]