Update comments and debug info

This commit is contained in:
Arun Prakash Jana 2019-07-12 18:37:12 +05:30
parent 87d91251ae
commit beabe62467
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -3297,9 +3297,9 @@ nochange:
if (getppid() == 1) if (getppid() == 1)
_exit(0); _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)) { if (access(path, F_OK)) {
DPRINTF_S("dir deleted or moved"); DPRINTF_S("directory inaccessible");
/* Save history */ /* Save history */
xstrlcpy(lastname, xbasename(path), NAME_MAX + 1); xstrlcpy(lastname, xbasename(path), NAME_MAX + 1);