From: Keith Packard Date: Mon, 18 May 2009 05:44:19 +0000 (-0700) Subject: USB device names can contain '.' too X-Git-Tag: 0.4~4 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=0f3233c49f43cd4e372e613303919ce4d50255b2;ds=sidebyside USB device names can contain '.' too Depending on the hierarchy of devices, names can contain '.', so allow those too. Signed-off-by: Keith Packard --- 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;