Explorar el Código

Show message when trying to go above /

master
Arun Prakash Jana hace 8 años
padre
commit
0aa1d43428
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: A75979F35C080412
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      nnn.c

+ 3
- 1
nnn.c Ver fichero

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


Cargando…
Cancelar
Guardar