소스 검색

Show message when trying to go above /

master
Arun Prakash Jana 8 년 전
부모
커밋
0aa1d43428
No known key found for this signature in database 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();


불러오는 중...
취소
저장