Selaa lähdekoodia

Don't attempt to go back if on the relative root

master
lostd 11 vuotta sitten
vanhempi
commit
9407399230
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. +3
    -1
      noice.c

+ 3
- 1
noice.c Näytä tiedosto

@@ -658,7 +658,9 @@ nochange:
return;
case SEL_BACK:
/* There is no going back */
if (strcmp(path, "/") == 0)
if (strcmp(path, "/") == 0 ||
strcmp(path, ".") == 0 ||
strchr(path, '/') == NULL)
goto nochange;
if (canopendir(path) == 0) {
printwarn();


Loading…
Peruuta
Tallenna