projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3322127
)
USB device names can contain '.' too
author
Keith Packard
<keithp@keithp.com>
Mon, 18 May 2009 05:44:19 +0000
(22:44 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 18 May 2009 05:44:19 +0000
(22:44 -0700)
Depending on the hierarchy of devices, names can contain '.', so allow those
too.
Signed-off-by: Keith Packard <keithp@keithp.com>
aoview/aoview_dev.c
patch
|
blob
|
history
diff --git
a/aoview/aoview_dev.c
b/aoview/aoview_dev.c
index 33f7f8ecde929b20b602ffa0f07e7b1a8fe966a1..2fabfe267b62c7af8636c2a4ce759fe25ba6f599 100644
(file)
--- 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;