Ver código fonte

Show message when trying to go above /

master
Arun Prakash Jana 8 anos atrás
pai
commit
0aa1d43428
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: A75979F35C080412
1 arquivos alterados com 3 adições e 1 exclusões
  1. +3
    -1
      nnn.c

+ 3
- 1
nnn.c Ver arquivo

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


Carregando…
Cancelar
Salvar