Sfoglia il codice sorgente

Read before write

master
Arun Prakash Jana 5 anni fa
parent
commit
0ae1ef656c
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: A75979F35C080412
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. +4
    -3
      src/nnn.c

+ 4
- 3
src/nnn.c Vedi File

@@ -2519,9 +2519,10 @@ static int dentfill(char *path, struct entry **dents)
/* Flag if this is a dir or symlink to a dir */
if (S_ISDIR(sb.st_mode))
dentp->flags |= DIR_OR_LINK_TO_DIR;
else if (!S_ISLNK(sb.st_mode))
dentp->flags &= ~DIR_OR_LINK_TO_DIR;
else {
else if (!S_ISLNK(sb.st_mode)) {
if (dentp->flags & DIR_OR_LINK_TO_DIR)
dentp->flags &= ~DIR_OR_LINK_TO_DIR;
} else {
if (!fstatat(fd, namep, &sb, 0)) {
if (S_ISDIR(sb.st_mode))
dentp->flags |= DIR_OR_LINK_TO_DIR;


Loading…
Annulla
Salva