소스 검색

List symlink with target missing

master
Arun Prakash Jana 5 년 전
부모
커밋
5ea8dee428
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제
  1. +12
    -2
      src/nnn.c

+ 12
- 2
src/nnn.c 파일 보기

@@ -3004,8 +3004,18 @@ static int dentfill(char *path, struct entry **dents)
}

if (fstatat(fd, namep, &sb, flags) == -1) {
DPRINTF_S(namep);
continue;
/* List a symlink with target missing */
if (!flags && errno == ENOENT) {
if (fstatat(fd, namep, &sb, AT_SYMLINK_NOFOLLOW) == -1) {
DPRINTF_S(namep);
DPRINTF_S(strerror(errno));
continue;
}
} else {
DPRINTF_S(namep);
DPRINTF_S(strerror(errno));
continue;
}
}

if (n == total_dents) {


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