Blame SOURCES/cdrkit-1.1.11-devname.patch

8c1a2e
diff -up wrk/libusal/scsi-linux-sg.c.wrk wrk/libusal/scsi-linux-sg.c
8c1a2e
--- wrk/libusal/scsi-linux-sg.c.wrk	2015-05-29 13:30:41.088896572 +0200
8c1a2e
+++ wrk/libusal/scsi-linux-sg.c	2015-05-29 13:38:25.776303388 +0200
8c1a2e
@@ -509,7 +509,9 @@ usalo_open(SCSI *usalp, char *device)
8c1a2e
 		/* scan and maybe keep one open, sg_setup decides */
8c1a2e
 #define HDX 0
8c1a2e
 #define SCD 1
8c1a2e
-#define SG 2
8c1a2e
+/* second scd option included because of Fedora naming convention /dev/srN */
8c1a2e
+#define SCD2 2
8c1a2e
+#define SG 3
8c1a2e
 		int h;
8c1a2e
 /*
8c1a2e
 retry_scan_open:
8c1a2e
@@ -533,6 +535,15 @@ retry_scan_open:
8c1a2e
 						first=0;
8c1a2e
 						last=255;
8c1a2e
 						break;
8c1a2e
+					}
8c1a2e
+				case(SCD2):
8c1a2e
+					{
8c1a2e
+						if(!check_linux_26())
8c1a2e
+							continue;
8c1a2e
+						pattern="/dev/sr%d";
8c1a2e
+						first=0;
8c1a2e
+						last=255;
8c1a2e
+						break;
8c1a2e
 					}
8c1a2e
 				case(SG):
8c1a2e
 					{