1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Roman Pompejus's patch to allow you to automatically select

overwrite or append in logging mode.

[originally from svn r1049]
This commit is contained in:
Simon Tatham
2001-04-16 15:58:43 +00:00
parent e259c7df5c
commit 639ab4c068
4 changed files with 39 additions and 4 deletions

View File

@ -34,6 +34,7 @@ void save_settings (char *section, int do_host, Config *cfg) {
write_setting_i (sesskey, "PortNumber", cfg->port);
write_setting_s (sesskey, "LogFileName", cfg->logfilename);
write_setting_i (sesskey, "LogType", cfg->logtype);
write_setting_i (sesskey, "LogFileClash", cfg->logxfovr);
p = "raw";
for (i = 0; backends[i].name != NULL; i++)
if (backends[i].protocol == cfg->protocol) {
@ -175,6 +176,7 @@ void load_settings (char *section, int do_host, Config *cfg) {
gpps (sesskey, "LogFileName", "putty.log",
cfg->logfilename, sizeof(cfg->logfilename));
gppi (sesskey, "LogType", 0, &cfg->logtype);
gppi (sesskey, "LogFileClash", LGXF_ASK, &cfg->logxfovr);
gpps (sesskey, "Protocol", "default", prot, 10);
cfg->protocol = default_protocol;