From 0f3233c49f43cd4e372e613303919ce4d50255b2 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 17 May 2009 22:44:19 -0700 Subject: [PATCH] USB device names can contain '.' too Depending on the hierarchy of devices, names can contain '.', so allow those too. Signed-off-by: Keith Packard --- aoview/aoview_dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aoview/aoview_dev.c b/aoview/aoview_dev.c index 33f7f8ec..2fabfe26 100644 --- a/aoview/aoview_dev.c +++ b/aoview/aoview_dev.c @@ -143,6 +143,8 @@ dir_filter_dev(const struct dirent *d) continue; if (c == '-') continue; + if (c == '.' && n != d->d_name + 1) + continue; return 0; } return 1; -- 2.30.2