USB device names can contain '.' too
authorKeith Packard <keithp@keithp.com>
Mon, 18 May 2009 05:44:19 +0000 (22:44 -0700)
committerKeith 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

index 33f7f8ecde929b20b602ffa0f07e7b1a8fe966a1..2fabfe267b62c7af8636c2a4ce759fe25ba6f599 100644 (file)
@@ -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;