소스 검색

Escape unreadable dirs we are already into

We care about the directory we are going to, so there is no reason
to get locked inside there if the parent is readable.
master
lostd 10 년 전
부모
커밋
1742598256
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +3
    -2
      noice.c

+ 3
- 2
noice.c 파일 보기

@@ -689,11 +689,12 @@ nochange:
strcmp(path, ".") == 0 ||
strchr(path, '/') == NULL)
goto nochange;
if (canopendir(path) == 0) {
dir = xdirname(path);
if (canopendir(dir) == 0) {
free(dir);
printwarn();
goto nochange;
}
dir = xdirname(path);
/* Save history */
oldpath = path;
path = dir;


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