1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-26 01:50:16 +02:00

Don't try to read OPKs in /media/./apps and /media/../apps

This commit is contained in:
Paul Cercueil 2013-07-19 11:57:35 -04:00
parent 04d9d9322d
commit 36c4205e0e

View File

@ -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;