From 36c4205e0e7072c5bb72947bcc7fbe2980a75926 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Fri, 19 Jul 2013 11:57:35 -0400 Subject: [PATCH] Don't try to read OPKs in /media/./apps and /media/../apps --- src/menu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/menu.cpp b/src/menu.cpp index c6c021b..4634c16 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -63,6 +63,9 @@ Menu::Menu(GMenu2X *gmenu2x, Touchscreen &ts) if (dptr->d_type != DT_DIR) continue; + if (!strcmp(dptr->d_name, ".") || !strcmp(dptr->d_name, "..")) + continue; + string path = (string) CARD_ROOT + "/" + dptr->d_name + "/apps"; if (access(path.c_str(), F_OK)) continue;