diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-14 21:44:48 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-03-14 21:44:48 +0530 |
commit | 67994ff4b2bb1a77ba987cf4ac0793ef13190c3a (patch) | |
tree | ec7a3ff2445b1ad60c3140619b2386d01619aa00 /src | |
parent | 4e58ad318c61a2efe308de61213cd1f8e2ff32ab (diff) | |
download | nnn-67994ff4b2bb1a77ba987cf4ac0793ef13190c3a.tar.gz |
Check if file is accessible
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 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(); |