]> Sergey Matveev's repositories - nnn.git/commitdiff
Update comments and debug info
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 12 Jul 2019 13:07:12 +0000 (18:37 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 12 Jul 2019 13:07:12 +0000 (18:37 +0530)
src/nnn.c

index bb2e28588a613bbe0890b564cec9590807c2f7e2..3454359961362f2b2941a1aa8d26bd0424a599be 100644 (file)
--- 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);