Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37513188
en ru br
ALT Linux repositórios
S:3.10.0-alt1
D:2.99.1-alt0.2
5.0: 3.1.2-alt1
4.1: 3.0.0-alt1
4.0: 2.2.4-alt1
3.0: 2.1.11-alt10

Group :: Sistema/Kernel e hardware
RPM: pciutils

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: pciutils-2.1.6-cardbusonlywhenroot.patch
Download


--- pciutils-2.1.6/lspci.c.chmou	Sun Jan 23 01:58:47 2000
+++ pciutils-2.1.6/lspci.c	Tue Apr 25 08:05:59 2000
@@ -101,9 +101,13 @@
   if (how_much < 128 && (d->config[PCI_HEADER_TYPE] & 0x7f) == PCI_HEADER_TYPE_CARDBUS)
     {
       /* For cardbus bridges, we need to fetch 64 bytes more to get the full standard header... */
-      if (!pci_read_block(p, 64, d->config+64, 64))
-	die("Unable to read cardbus bridge extension data.");
-      how_much = 128;
+      /* Chmou: Only when we are root */
+        if (getuid() == 0) 
+        {
+            if (!pci_read_block(p, 64, d->config+64, 64))
+                die("Unable to read cardbus bridge extension data.");
+            how_much = 128;
+        }
     }
   d->config_cnt = how_much;
   pci_setup_cache(p, d->config, d->config_cnt);
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009