mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Check if file is accessible
This commit is contained in:
parent
4e58ad318c
commit
67994ff4b2
|
@ -5807,7 +5807,7 @@ nochange:
|
||||||
rundir[0] = '\0';
|
rundir[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newpath[0])
|
if (newpath[0] && !access(newpath, F_OK))
|
||||||
xstrlcpy(lastname, xbasename(newpath), NAME_MAX+1);
|
xstrlcpy(lastname, xbasename(newpath), NAME_MAX+1);
|
||||||
else if (ndents)
|
else if (ndents)
|
||||||
copycurname();
|
copycurname();
|
||||||
|
|
Loading…
Reference in a new issue