Sfoglia il codice sorgente

Show message when trying to go above /

master
Arun Prakash Jana 8 anni fa
parent
commit
0aa1d43428
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: A75979F35C080412
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      nnn.c

+ 3
- 1
nnn.c Vedi File

@@ -828,8 +828,10 @@ nochange:
/* There is no going back */
if (strcmp(path, "/") == 0 ||
strcmp(path, ".") == 0 ||
strchr(path, '/') == NULL)
strchr(path, '/') == NULL) {
printmsg("You are at /");
goto nochange;
}
dir = xdirname(path);
if (canopendir(dir) == 0) {
printwarn();


Loading…
Annulla
Salva