summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--udevtrigger.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udevtrigger.c b/udevtrigger.c
index dbb414a..e09ad98 100644
--- a/udevtrigger.c
+++ b/udevtrigger.c
@@ -191,6 +191,9 @@ static void scan_subdir(const char *base)
for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) {
char dirname[PATH_SIZE];
+ if (dent->d_name[0] == '.')
+ continue;
+
strlcpy(dirname, base, sizeof(dirname));
strlcat(dirname, "/", sizeof(dirname));
strlcat(dirname, dent->d_name, sizeof(dirname));