aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-12 18:37:12 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-12 18:37:12 +0530
commitbeabe624671fded77adc557f6f18fb0fb8115b58 (patch)
treefabe26cefd46c62d1ec2bc810a9ee4f2f7b43767 /src
parent87d91251aeae520a27cae2e41c52811f513946de (diff)
downloadnnn-beabe624671fded77adc557f6f18fb0fb8115b58.tar.gz
Update comments and debug info
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index bb2e285..3454359 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3297,9 +3297,9 @@ nochange:
if (getppid() == 1)
_exit(0);
- /* Check if CWD is deleted and find an existing parent */
+ /* If CWD is deleted or moved or perms changed, find an accessible parent */
if (access(path, F_OK)) {
- DPRINTF_S("dir deleted or moved");
+ DPRINTF_S("directory inaccessible");
/* Save history */
xstrlcpy(lastname, xbasename(path), NAME_MAX + 1);