version 1.110, 2018/03/01 12:53:08 |
version 1.111, 2018/05/24 09:42:49 |
|
|
/* Get the new session working directory. */ |
/* Get the new session working directory. */ |
if ((tmp = args_get(args, 'c')) != NULL) |
if ((tmp = args_get(args, 'c')) != NULL) |
cwd = format_single(item, tmp, c, NULL, NULL, NULL); |
cwd = format_single(item, tmp, c, NULL, NULL, NULL); |
else if (c != NULL && c->session == NULL && c->cwd != NULL) |
|
cwd = xstrdup(c->cwd); |
|
else |
else |
cwd = xstrdup("."); |
cwd = xstrdup(server_client_get_cwd(c, NULL)); |
|
|
/* |
/* |
* If this is a new client, check for nesting and save the termios |
* If this is a new client, check for nesting and save the termios |