From 38e144ec2b8a091051b0bf36d8cee590db7c25ed Mon Sep 17 00:00:00 2001 From: Nick Hibma Date: Mon, 10 Jan 2000 22:35:33 +0000 Subject: [PATCH] Don't fail if less then MAXDEV /dev/usb\d+ entries exist. --- usr.sbin/usbd/usbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/usbd/usbd.c b/usr.sbin/usbd/usbd.c index b5fda980effc..09190c9154f2 100644 --- a/usr.sbin/usbd/usbd.c +++ b/usr.sbin/usbd/usbd.c @@ -942,7 +942,7 @@ main(int argc, char **argv) if (fds[ndevs] > maxfd) maxfd = fds[ndevs]; ndevs++; - } else if (errno != ENXIO) { + } else if (errno != ENXIO && errno != ENOENT) { /* there was an error, on a device that does * exist (device is configured) */