pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/hal hald-netbsd: cpu device name must match c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5a11cba3b947
branches:  trunk
changeset: 380684:5a11cba3b947
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Sat May 19 13:41:51 2018 +0000

description:
hald-netbsd: cpu device name must match cpu[0-9]*. Bump pkg revision.

diffstat:

 sysutils/hal/Makefile                         |  4 ++--
 sysutils/hal/files/hald-netbsd/devinfo_misc.c |  3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r c0ad370e3a69 -r 5a11cba3b947 sysutils/hal/Makefile
--- a/sysutils/hal/Makefile     Sat May 19 13:25:36 2018 +0000
+++ b/sysutils/hal/Makefile     Sat May 19 13:41:51 2018 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.80 2018/05/19 13:25:36 jmcneill Exp $
+# $NetBSD: Makefile,v 1.81 2018/05/19 13:41:51 jmcneill Exp $
 
 DISTNAME=              hal-0.5.14
-PKGREVISION=           19
+PKGREVISION=           20
 CATEGORIES=            sysutils
 MASTER_SITES=          http://hal.freedesktop.org/releases/
 EXTRACT_SUFX=          .tar.bz2
diff -r c0ad370e3a69 -r 5a11cba3b947 sysutils/hal/files/hald-netbsd/devinfo_misc.c
--- a/sysutils/hal/files/hald-netbsd/devinfo_misc.c     Sat May 19 13:25:36 2018 +0000
+++ b/sysutils/hal/files/hald-netbsd/devinfo_misc.c     Sat May 19 13:41:51 2018 +0000
@@ -117,6 +117,9 @@
        if (strncmp(devnode, "cpu", 3) != 0) {
                return (NULL);
        }
+       if (devnode[3] < '0' || devnode[3] > '9') {
+               return (NULL);
+       }
 
        HAL_INFO (("devinfo_cpu_add: parent=%p devnode=%s devfs_path=%s device_type=%s",
            parent, devnode, devfs_path, device_type));



Home | Main Index | Thread Index | Old Index