version 1.30, 2022/05/30 13:06:41 |
version 1.31, 2022/08/10 14:03:59 |
|
|
*/ |
*/ |
if (chdir(new_wp->cwd) == 0) |
if (chdir(new_wp->cwd) == 0) |
environ_set(child, "PWD", 0, "%s", new_wp->cwd); |
environ_set(child, "PWD", 0, "%s", new_wp->cwd); |
else if ((tmp = find_home()) != NULL || chdir(tmp) == 0) |
else if ((tmp = find_home()) != NULL && chdir(tmp) == 0) |
environ_set(child, "PWD", 0, "%s", tmp); |
environ_set(child, "PWD", 0, "%s", tmp); |
else if (chdir("/") == 0) |
else if (chdir("/") == 0) |
environ_set(child, "PWD", 0, "/"); |
environ_set(child, "PWD", 0, "/"); |