From: Gabor Juhos Date: Wed, 11 Sep 2013 14:10:12 +0000 (+0200) Subject: udevtrigger: add back directory name check into scan_subdir X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=66deb81240d58400bd73e031357ec3d859892353;p=oweals%2Fprocd.git 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 --- 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));