diff options
author | Ruslan Kabatsayev <b7.10110111@gmail.com> | 2020-11-10 02:39:46 +0300 |
---|---|---|
committer | Ruslan Kabatsayev <b7.10110111@gmail.com> | 2021-02-22 18:36:14 +0300 |
commit | 993a9817d5bec161ceeab77062685de58e54c5f7 (patch) | |
tree | a8161d26abb6ba6496d85850d00a1ce9813237ce | |
parent | d68bb8328bfdad3ddd9c0cfeab89733213018fca (diff) | |
download | usbutils-993a9817d5bec161ceeab77062685de58e54c5f7.tar.gz |
Fix locating endpoint when it's a directory rather than a symlink
This is required at least on my Linux 4.14.157 system, as well as Ubuntu
20.04 with Linux 5.4.0-42-generic.
Signed-off-by: Ruslan Kabatsayev <b7.10110111@gmail.com>
-rwxr-xr-x | usb-devices | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usb-devices b/usb-devices index 0f31bc0..e2897ff 100755 --- a/usb-devices +++ b/usb-devices @@ -82,7 +82,7 @@ print_interface() { for endpoint in $ifpath/ep_?? do - if [ -L $endpoint ]; then # v4: verify endpoint exists + if [ -L $endpoint ] || [ -d $endpoint ]; then # v4: verify endpoint exists print_endpoint $endpoint fi done |