Use starting client cwd in config file, GitHub issue 1606.

This commit is contained in:
nicm
2019-02-16 11:42:08 +00:00
parent f9c396db41
commit 82f0c859a2
3 changed files with 5 additions and 1 deletions

View File

@ -1982,6 +1982,8 @@ server_client_get_cwd(struct client *c, struct session *s)
{
const char *home;
if (!cfg_finished && cfg_client != NULL)
return (cfg_client->cwd);
if (c != NULL && c->session == NULL && c->cwd != NULL)
return (c->cwd);
if (s != NULL && s->cwd != NULL)