Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > d0727d527c46019817409bf00e818a73 > files > 7

pciutils-3.1.10-2.mga3.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))