mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Ensure we ignore a hostname in Default Settings, if a perverse user
has set one up using regedit. It badly confuses Plink. [originally from svn r1404]
This commit is contained in:
parent
bc7203bc3a
commit
2a730c9865
@ -296,7 +296,11 @@ void load_settings(char *section, int do_host, Config * cfg)
|
||||
cfg->remote_cmd_ptr = cfg->remote_cmd;
|
||||
cfg->remote_cmd_ptr2 = NULL;
|
||||
|
||||
gpps(sesskey, "HostName", "", cfg->host, sizeof(cfg->host));
|
||||
if (do_host) {
|
||||
gpps(sesskey, "HostName", "", cfg->host, sizeof(cfg->host));
|
||||
} else {
|
||||
cfg->host[0] = '\0'; /* blank hostname */
|
||||
}
|
||||
gpps(sesskey, "LogFileName", "putty.log",
|
||||
cfg->logfilename, sizeof(cfg->logfilename));
|
||||
gppi(sesskey, "LogType", 0, &cfg->logtype);
|
||||
|
Loading…
Reference in New Issue
Block a user