diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2011-01-09 17:30:01 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2011-01-09 17:30:01 +0000 |
commit | 9ced1ddc083cf2fdf2bdf6396016c9f94863a13c (patch) | |
tree | 2292e013ebc914211108128f0a4fbf8d6804730b /sysutils | |
parent | 9db486136811334a6bf65b2b5e91ff5c7af5ac16 (diff) | |
download | ports-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/Makefile | 2 | ||||
-rw-r--r-- | sysutils/hal/files/patch-hald_freebsd_hf-usb2.c | 4 |
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; |