version 1.24, 2020/05/21 07:24:13 |
version 1.25, 2021/02/19 09:09:16 |
|
|
* Child process. Change to the working directory or home if that |
* Child process. Change to the working directory or home if that |
* fails. |
* fails. |
*/ |
*/ |
if (chdir(new_wp->cwd) != 0) { |
if (chdir(new_wp->cwd) != 0 && |
if ((tmp = find_home()) == NULL || chdir(tmp) != 0) |
((tmp = find_home()) == NULL || chdir(tmp) != 0) && |
chdir("/"); |
chdir("/") != 0) |
} |
fatal("chdir failed"); |
|
|
/* |
/* |
* Update terminal escape characters from the session if available and |
* Update terminal escape characters from the session if available and |