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:
parent
04d9d9322d
commit
36c4205e0e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user