浏览代码

List symlink with target missing

master
Arun Prakash Jana 6 年前
父节点
当前提交
5ea8dee428
找不到此签名对应的密钥 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) {


正在加载...
取消
保存