summaryrefslogtreecommitdiffstats
path: root/src/local.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/local.c')
-rw-r--r--src/local.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/local.c b/src/local.c
index 08c6b8b..f2cdba4 100644
--- a/src/local.c
+++ b/src/local.c
@@ -302,6 +302,9 @@ static void local_find_internal_mydocs(int * maj, int * min) {
while ( ( dirent = readdir(dir) ) ) {
+ if ( strncmp(dirent->d_name, ".", sizeof(".")) == 0 || strncmp(dirent->d_name, "..", sizeof("..")) == 0 )
+ continue;
+
if ( snprintf(buf, sizeof(buf), "/sys/class/mmc_host/%s/slot_name", dirent->d_name) <= 0 )
continue;