File cdrdao-1.2.2-scan.patch of Package cdrdao

--- dao/main.cc
+++ dao/main.cc
@@ -1829,7 +1829,9 @@
               sdata[i].product, sdata[i].revision);
     }
     delete[] sdata;
-  } else {
+  }
+#if 0  
+   else {
     sdata = ScsiIf::scan(&len, "ATAPI");
     if (sdata) {
       for (i = 0; i < len; i++) {
@@ -1840,6 +1842,7 @@
     }
   }
 #endif
+#endif
 }
 
 static int checkToc(const Toc *toc)
--- xdao/CdDevice.cc
+++ xdao/CdDevice.cc
@@ -1236,7 +1236,9 @@
     for (i = 0; i < len; i++)
       CdDevice::add(sdata[i].dev.c_str(), sdata[i].vendor, sdata[i].product);
     delete[] sdata;
-  } else {
+  }
+#if 0
+   else {
     // Only scan for ATAPI devices if we got nothing on the ATA
     // interface, otherwise every device would show up twice on the
     // list.
@@ -1248,6 +1250,7 @@
     }
   }
 #endif
+#endif
 }
 
 void CdDevice::remove(const char* dev)
openSUSE Build Service is sponsored by