From 66deb81240d58400bd73e031357ec3d859892353 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Wed, 11 Sep 2013 16:10:12 +0200 Subject: [PATCH] udevtrigger: add back directory name check into scan_subdir It has been accidentally removed by: commit 824a4b3da2c0be19ccf54a48dcd4c10677b82c1a Author: Gabor Juhos Date: Tue Sep 10 12:59:25 2013 +0200 udevtrigger: reduce indent level in scan_* functions Signed-off-by: Gabor Juhos --- udevtrigger.c | 3 +++ 1 file changed, 3 insertions(+) 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)); -- 2.25.1