Преглед изворни кода

Show message when trying to go above /

master
Arun Prakash Jana пре 8 година
родитељ
комит
0aa1d43428
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 измењених фајлова са 3 додато и 1 уклоњено
  1. +3
    -1
      nnn.c

+ 3
- 1
nnn.c Прегледај датотеку

@@ -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…
Откажи
Сачувај