Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaim, Sean M <Sean.Kaim@ca.com>2015-11-12 07:23:46 +0300
committerKaim, Sean M <Sean.Kaim@ca.com>2015-11-12 07:23:46 +0300
commitb63a1d0669623f3c452e42e9c66c52255cbe69fa (patch)
treebc5320bc56aad162ba0c66bed03745df700ad845 /CMDLINE.C
parentd351dabaf31dac85a14bdbd059c7d1886fd7fe11 (diff)
Merge upstream 0.66 tag
http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commit;h=8fdeb3a95cc3d7dce5629fc22e309eb3c996f44d
Diffstat (limited to 'CMDLINE.C')
-rw-r--r--CMDLINE.C17
1 files changed, 17 insertions, 0 deletions
diff --git a/CMDLINE.C b/CMDLINE.C
index c203408f..e4e18ce0 100644
--- a/CMDLINE.C
+++ b/CMDLINE.C
@@ -579,6 +579,23 @@ int cmdline_process_param(char *p, char *value, int need_save, Conf *conf)
nextitem += length + skip;
}
}
+
+ if (!strcmp(p, "-sessionlog") ||
+ !strcmp(p, "-sshlog") ||
+ !strcmp(p, "-sshrawlog")) {
+ Filename *fn;
+ RETURN(2);
+ UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
+ SAVEABLE(0);
+ fn = filename_from_str(value);
+ conf_set_filename(conf, CONF_logfilename, fn);
+ conf_set_int(conf, CONF_logtype,
+ !strcmp(p, "-sessionlog") ? LGTYP_DEBUG :
+ !strcmp(p, "-sshlog") ? LGTYP_PACKETS :
+ /* !strcmp(p, "-sshrawlog") ? */ LGTYP_SSHRAW);
+ filename_free(fn);
+ }
+
return ret; /* unrecognised */
}