X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=settings.c;h=a50505010e6b48d895ee3223a5c3a6313ff7ca72;hb=8dfa77c88941c4e926d9d65f9730c4ed5f74ba8d;hp=299ee8e09688cee615ea82096c4929e506ccd6ae;hpb=a0d8c1263b29cba9d7dec3069ce2c6c1d165cbf6;p=PuTTY_svn.git diff --git a/settings.c b/settings.c index 299ee8e0..a5050501 100644 --- a/settings.c +++ b/settings.c @@ -72,7 +72,6 @@ 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_s (sesskey, "RemoteCmd", cfg->remote_cmd); write_setting_s (sesskey, "Cipher", cfg->cipher == CIPHER_BLOWFISH ? "blowfish" : cfg->cipher == CIPHER_DES ? "des" : @@ -161,6 +160,7 @@ void load_settings (char *section, int do_host, Config *cfg) { sesskey = open_settings_r(section); cfg->ssh_subsys = 0; /* FIXME: load this properly */ + cfg->remote_cmd_ptr = cfg->remote_cmd; gpps (sesskey, "HostName", "", cfg->host, sizeof(cfg->host)); gppi (sesskey, "PortNumber", default_port, &cfg->port); @@ -213,7 +213,6 @@ 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); - gpps (sesskey, "RemoteCmd", "", cfg->remote_cmd, sizeof(cfg->remote_cmd)); { char cipher[10]; gpps (sesskey, "Cipher", "3des", cipher, 10);