dannf@fluid:~$ svn diff -c2521 http://ezix.org/source/packages/lshw/development
Index: src/core/device-tree.cc
===================================================================
--- src/core/device-tree.cc     (revision 2520)
+++ src/core/device-tree.cc     (revision 2521)
@@ -193,7 +193,8 @@
       struct dirent **cachelist;
       int ncache;
 
-      if (hw::strip(get_string(basepath + "/device_type")) != "cpu")
+      if (exists(basepath + "/device_type") &&
+        hw::strip(get_string(basepath + "/device_type")) != "cpu")
         break;                                    // oops, not a CPU!
 
       cpu.setProduct(get_string(basepath + "/name"));


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to