summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/libusb/files/patch-sum4
-rw-r--r--devel/libusb/patches/patch-ab24
2 files changed, 23 insertions, 5 deletions
diff --git a/devel/libusb/files/patch-sum b/devel/libusb/files/patch-sum
index 9033edc7dfa..3cef3f92b60 100644
--- a/devel/libusb/files/patch-sum
+++ b/devel/libusb/files/patch-sum
@@ -1,5 +1,5 @@
-$NetBSD: patch-sum,v 1.1.1.1 2001/03/28 10:11:41 drochner Exp $
+$NetBSD: patch-sum,v 1.2 2001/03/28 16:43:56 drochner Exp $
SHA1 (patch-aa) = 38de6f762249a6a2fa5d36bebcca3ce2b17bdb15
-SHA1 (patch-ab) = f4a37ced4335e1ff9ed7060b59f0a59b614eba53
+SHA1 (patch-ab) = bd62cf4c4357e086f5e46f394134f3b111ec4e3f
SHA1 (patch-ac) = 4e68ca416a75d54845bb0c19e17bd1c3d42ed252
diff --git a/devel/libusb/patches/patch-ab b/devel/libusb/patches/patch-ab
index bd063e02548..650d0b7edda 100644
--- a/devel/libusb/patches/patch-ab
+++ b/devel/libusb/patches/patch-ab
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.1.1.1 2001/03/28 10:11:41 drochner Exp $
+$NetBSD: patch-ab,v 1.2 2001/03/28 16:43:57 drochner Exp $
---- freebsd.c.orig Fri Feb 16 17:59:02 2001
-+++ freebsd.c Fri Feb 16 17:59:16 2001
+--- freebsd.c.orig Tue Oct 10 00:08:22 2000
++++ freebsd.c Wed Mar 28 18:38:33 2001
@@ -41,16 +41,18 @@
{
int i;
@@ -45,3 +45,21 @@ $NetBSD: patch-ab,v 1.1.1.1 2001/03/28 10:11:41 drochner Exp $
ret = ioctl(dev->fd, USB_DO_REQUEST, &req);
if (ret < 0)
+@@ -285,7 +289,7 @@
+
+ /* Open its control endpoint */
+
+- sprintf(buf, "/dev/%s", di.devnames[0]);
++ sprintf(buf, "/dev/%s.00", di.devnames[0]);
+ dfd = open(buf, O_RDONLY);
+ if(dfd < 0)
+ {
+@@ -302,7 +306,7 @@
+
+ dev->bus = bus;
+
+- strcpy(dev->filename, buf);
++ sprintf(dev->filename, "/dev/%s", di.devnames[0]);
+
+ if(ioctl(dfd, USB_GET_DEVICE_DESC, &dev->descriptor) < 0)
+ USB_ERROR_STR(-errno, "couldn't get device descriptor for %s: %s",