summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-05-17 22:44:19 -0700
committerKeith Packard <keithp@keithp.com>2009-05-17 22:44:19 -0700
commit0f3233c49f43cd4e372e613303919ce4d50255b2 (patch)
tree17c873a75060429903bcd4d4834b66edb4c585ec
parent33221277690e6ee30387c506c3f2b8237ed48efd (diff)
USB device names can contain '.' too
Depending on the hierarchy of devices, names can contain '.', so allow those too. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--aoview/aoview_dev.c2
1 files changed, 2 insertions, 0 deletions
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;