diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2018-05-19 13:41:51 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2018-05-19 13:41:51 +0000 |
commit | 7e6fb8f478b0b9c8d830844c958e6ba1d537fc1d (patch) | |
tree | c979329260b74d4cb0f25e597b949e65e76e1b91 /sysutils | |
parent | a5f77dad8c5e785ae5e6e34adeb17843c50f4b69 (diff) | |
download | pkgsrc-7e6fb8f478b0b9c8d830844c958e6ba1d537fc1d.tar.gz |
hald-netbsd: cpu device name must match cpu[0-9]*. Bump pkg revision.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/hal/Makefile | 4 | ||||
-rw-r--r-- | sysutils/hal/files/hald-netbsd/devinfo_misc.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile index ad4160730a3..d196bd88064 100644 --- a/sysutils/hal/Makefile +++ b/sysutils/hal/Makefile @@ -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 --git a/sysutils/hal/files/hald-netbsd/devinfo_misc.c b/sysutils/hal/files/hald-netbsd/devinfo_misc.c index a3008a741a5..0622f853b69 100644 --- a/sysutils/hal/files/hald-netbsd/devinfo_misc.c +++ b/sysutils/hal/files/hald-netbsd/devinfo_misc.c @@ -117,6 +117,9 @@ devinfo_cpu_add(HalDevice *parent, const char *devnode, char *devfs_path, char * 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)); |