Selaa lähdekoodia

Check if file is accessible

master
Arun Prakash Jana 5 vuotta sitten
vanhempi
commit
67994ff4b2
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c Näytä tiedosto

@@ -5807,7 +5807,7 @@ nochange:
rundir[0] = '\0';
}

if (newpath[0])
if (newpath[0] && !access(newpath, F_OK))
xstrlcpy(lastname, xbasename(newpath), NAME_MAX+1);
else if (ndents)
copycurname();


Loading…
Peruuta
Tallenna