File fix-for-kernel-5.6.patch of Package cdparanoia

Index: cdparanoia-III-10.2/interface/scan_devices.c
===================================================================
--- cdparanoia-III-10.2.orig/interface/scan_devices.c
+++ cdparanoia-III-10.2/interface/scan_devices.c
@@ -476,6 +476,8 @@ int check_sgio(const char *device, int m
     case ENOSYS: /* sg gives us ENOSYS when SG_IO is supported but
 		  * interface_id is bad.  IMHO, this is wrong and
 		  * needs fixing in the kernel. */
+    case EFAULT: /* kernel 5.6 returns EFAULT in cases when 5.5
+                  * returned EINVAL. */
       
       close(fd);
       return 1;
openSUSE Build Service is sponsored by