diff options
author | Kaim, Sean M <Sean.Kaim@ca.com> | 2015-11-12 07:23:46 +0300 |
---|---|---|
committer | Kaim, Sean M <Sean.Kaim@ca.com> | 2015-11-12 07:23:46 +0300 |
commit | b63a1d0669623f3c452e42e9c66c52255cbe69fa (patch) | |
tree | bc5320bc56aad162ba0c66bed03745df700ad845 /CMDLINE.C | |
parent | d351dabaf31dac85a14bdbd059c7d1886fd7fe11 (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.C | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 */ } |