Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 24b6807a7e314df6ae2492a2cdc2672a > files > 1

pciutils-2.2.6-3mdv2008.0.src.rpm

--- pciutils-2.2.1/lspci.c.pix	2005-12-18 17:16:24.000000000 +0100
+++ pciutils-2.2.1/lspci.c	2005-12-18 17:18:03.000000000 +0100
@@ -117,6 +117,9 @@
     die("Unable to read the standard configuration space header");
   if ((d->config[PCI_HEADER_TYPE] & 0x7f) == PCI_HEADER_TYPE_CARDBUS)
     {
+      /* Chmou: Only when we are root */
+      if (getuid() == 0) 
+
       /* For cardbus bridges, we need to fetch 64 bytes more to get the
        * full standard header... */
       if (config_fetch(d, 64, 64))