Browse Source

Check if file is accessible

master
Arun Prakash Jana 5 years ago
parent
commit
67994ff4b2
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c View File

@@ -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…
Cancel
Save