X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/cb4d47685790af5ccbca174a58c4f0d01a77860f..5bb641e1cb8327a54bbe1ed4391782a2cf1b938a:/settings.c?ds=inline diff --git a/settings.c b/settings.c index 01fd312d..90bb9ce2 100644 --- a/settings.c +++ b/settings.c @@ -172,6 +172,7 @@ void save_settings(char *section, int do_host, Config * cfg) write_setting_i(sesskey, "NoPTY", cfg->nopty); write_setting_i(sesskey, "Compression", cfg->compression); write_setting_i(sesskey, "AgentFwd", cfg->agentfwd); + write_setting_i(sesskey, "ChangeUsername", cfg->change_username); wprefs(sesskey, "Cipher", ciphernames, CIPHER_MAX, cfg->ssh_cipherlist); write_setting_i(sesskey, "AuthTIS", cfg->try_tis_auth); @@ -359,6 +360,7 @@ void load_settings(char *section, int do_host, Config * cfg) gppi(sesskey, "NoPTY", 0, &cfg->nopty); gppi(sesskey, "Compression", 0, &cfg->compression); gppi(sesskey, "AgentFwd", 0, &cfg->agentfwd); + gppi(sesskey, "ChangeUsername", 0, &cfg->change_username); gprefs(sesskey, "Cipher", "\0", ciphernames, CIPHER_MAX, cfg->ssh_cipherlist); gppi(sesskey, "SshProt", 1, &cfg->sshprot);