Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > b30107eb07e57ab7103b0581b7316395 > files > 12

pciutils-3.2.0-2.mga2.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))