Przeglądaj źródła

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

master
lostd 10 lat temu
rodzic
commit
9407399230
1 zmienionych plików z 3 dodań i 1 usunięć
  1. +3
    -1
      noice.c

+ 3
- 1
noice.c Wyświetl plik

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


||||||
x
 
000:0
Ładowanie…
Anuluj
Zapisz