Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303944
b: refs/heads/master
c: f6fe916
h: refs/heads/master
v: v3
  • Loading branch information
Du, ChangbinX authored and Greg Kroah-Hartman committed May 15, 2012
1 parent 0dcbcf1 commit 224f6c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1996e6c572969a8cf6d7fa97eef621219acd94a9
refs/heads/master: f6fe916ed0a383ae89b041200dae271579c053b3
5 changes: 5 additions & 0 deletions trunk/tools/usb/testusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ static const char *usbfs_dir_find(void)
{
static char usbfs_path_0[] = "/dev/usb/devices";
static char usbfs_path_1[] = "/proc/bus/usb/devices";
static char udev_usb_path[] = "/dev/bus/usb";

static char *const usbfs_paths[] = {
usbfs_path_0, usbfs_path_1
Expand All @@ -376,6 +377,10 @@ static const char *usbfs_dir_find(void)
}
} while (++it != end);

/* real device-nodes managed by udev */
if (access(udev_usb_path, F_OK) == 0)
return udev_usb_path;

return NULL;
}

Expand Down

0 comments on commit 224f6c6

Please sign in to comment.