ソースを参照

List symlink with target missing

master
Arun Prakash Jana 5年前
コミット
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) {


読み込み中…
キャンセル
保存