Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > 5fd234c1c0bb2adac5945e203b48cc91 > files > 2

pciutils-3.1.2-1mdv2009.1.src.rpm

--- lspci.c.pix	2005-12-18 17:16:24.000000000 +0100
+++ lspci.c	2005-12-18 17:18:03.000000000 +0100
@@ -160,6 +160,9 @@
     }
   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))