aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2011-01-09 17:30:01 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2011-01-09 17:30:01 +0000
commit9ced1ddc083cf2fdf2bdf6396016c9f94863a13c (patch)
tree2292e013ebc914211108128f0a4fbf8d6804730b /sysutils
parent9db486136811334a6bf65b2b5e91ff5c7af5ac16 (diff)
downloadports-9ced1ddc083cf2fdf2bdf6396016c9f94863a13c.tar.gz
ports-9ced1ddc083cf2fdf2bdf6396016c9f94863a13c.zip
Adjust the code to parse the USB devd notification to be a bit broader.
This ensures that the USB cdev notifications are not passed to the storage layer thus muting the USB device attach messages. Submitted by: hps
Notes
Notes: svn path=/head/; revision=267548
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/hal/Makefile2
-rw-r--r--sysutils/hal/files/patch-hald_freebsd_hf-usb2.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile
index c7cb99d21002..b7e556445346 100644
--- a/sysutils/hal/Makefile
+++ b/sysutils/hal/Makefile
@@ -8,7 +8,7 @@
PORTNAME= hal
DISTVERSION= 0.5.14
-PORTREVISION= 11
+PORTREVISION= 12
CATEGORIES= sysutils
MASTER_SITES= http://hal.freedesktop.org/releases/
diff --git a/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c b/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c
index af288291db4f..5e29b827b14c 100644
--- a/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c
+++ b/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c
@@ -133,8 +133,8 @@
+ (strcmp(type, "CREATE") && strcmp(type, "DESTROY")))
+ return FALSE;
+
-+ if (! strncmp(data, "cdev=ugen", strlen("cdev=ugen")) ||
-+ ! strncmp(data, "cdev=usb", strlen("cdev=usb")))
++ if (strstr(data, "cdev=ugen") != NULL ||
++ strstr(data, "cdev=usb") != NULL)
+ return TRUE;
+
+ return FALSE;