Blame SOURCES/cdrkit-1.1.11-devname.patch

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