mirror of
https://github.com/jarun/nnn.git
synced 2025-03-19 04:49:49 +00:00
Check if file is accessible
This commit is contained in:
parent
4e58ad318c
commit
67994ff4b2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue