瀏覽代碼

Show message when trying to go above /

master
Arun Prakash Jana 8 年之前
父節點
當前提交
0aa1d43428
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 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…
取消
儲存