dont try to insert ".."

This commit is contained in:
penfold42 2018-08-07 19:46:27 +10:00
parent 3152d4efd5
commit 680a4a5b03

View file

@ -875,7 +875,8 @@ bool FileBrowser::AddToCaddy(FileBrowser::BrowsableList::Entry* current)
{ {
return AddImageToCaddy(current); return AddImageToCaddy(current);
} }
else if (current->filImage.fattrib & AM_DIR)
else if ( (current->filImage.fattrib & AM_DIR) && ( strcmp(current->filImage.fname, "..") != 0) )
{ {
bool ret = false; bool ret = false;
f_chdir(current->filImage.fname); f_chdir(current->filImage.fname);