From 6aea909aa02024dad4a3ef1ed63a25a09185d740 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 27 Dec 2003 00:23:03 +0000 Subject: [PATCH] Redhat and Mandrake fixes * lib/proc.c (proc_setup): Increased path name length limit to 1024. Thanks for Redhat and Mandrake for inspiration. * lib/configure: Recognize ppc and ppc64, both have 64-bit addresses. Grabbed from Redhat (Fedora) patches. git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-23 --- ChangeLog | 8 ++++++++ TODO | 2 ++ lib/configure | 2 +- lib/proc.c | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ffe9dbd..a09efc4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-12-27 Martin Mares + + * lib/proc.c (proc_setup): Increased path name length limit to 1024. + Thanks for Redhat and Mandrake for inspiration. + + * lib/configure: Recognize ppc and ppc64, both have 64-bit addresses. + Grabbed from Redhat (Fedora) patches. + 2003-12-27 Martin Mares Merged bug fixes from Debian patches: diff --git a/TODO b/TODO index dd2bd13..9077600 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,5 @@ - lib: "syscall" access method +- lspci: don't die when non-root tries to dump cardbus data + - pci.ids: "Unknown mass storage controller" -> "Mass storage controller". diff --git a/lib/configure b/lib/configure index 9ac2983..250350f 100755 --- a/lib/configure +++ b/lib/configure @@ -45,7 +45,7 @@ case $sys in echo >>$c '#define HAVE_PM_INTEL_CONF' ok=1 ;; - alpha|ia64|sparc|sparc64) + alpha|ia64|sparc|sparc64|ppc|ppc64) echo >>$c '#define HAVE_64BIT_ADDRESS' ;; esac diff --git a/lib/proc.c b/lib/proc.c index d46e5cb..9f43fce 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -178,7 +178,7 @@ proc_setup(struct pci_dev *d, int rw) if (a->cached_dev != d || a->fd_rw < rw) { - char buf[256]; + char buf[1024]; if (a->fd >= 0) close(a->fd); if (snprintf(buf, sizeof(buf), "%s/%02x/%02x.%d", a->method_params[PCI_ACCESS_PROC_BUS_PCI], -- 2.39.2