Procházet zdrojové kódy

List symlink with target missing

master
Arun Prakash Jana před 5 roky
rodič
revize
5ea8dee428
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: A75979F35C080412
1 změnil soubory, kde provedl 12 přidání a 2 odebrání
  1. +12
    -2
      src/nnn.c

+ 12
- 2
src/nnn.c Zobrazit soubor

@@ -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) {


Načítá se…
Zrušit
Uložit