mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-14 09:37:34 -05:00
Merge tag '0.66'
This brings in the rest of the 0.66 branch, including some changes new on master. Conflicts: doc/plink.but sshrsa.c (The conflicts were both trivial: in one, the addition of an extra parameter to rsa2_newkey on master happened on the line next to 0.66's addition of a check for NULL return value, and in the other, I'd got the version number in the plink -h transcript messed up on master.)
This commit is contained in:
@ -164,6 +164,7 @@ void logfopen(void *handle)
|
||||
{
|
||||
struct LogContext *ctx = (struct LogContext *)handle;
|
||||
struct tm tm;
|
||||
FILE *fp;
|
||||
int mode;
|
||||
|
||||
/* Prevent repeat calls */
|
||||
@ -183,10 +184,10 @@ void logfopen(void *handle)
|
||||
conf_get_str(ctx->conf, CONF_host),
|
||||
conf_get_int(ctx->conf, CONF_port), &tm);
|
||||
|
||||
ctx->lgfp = f_open(ctx->currlogfilename, "r", FALSE); /* file already present? */
|
||||
if (ctx->lgfp) {
|
||||
fp = f_open(ctx->currlogfilename, "r", FALSE); /* file already present? */
|
||||
if (fp) {
|
||||
int logxfovr = conf_get_int(ctx->conf, CONF_logxfovr);
|
||||
fclose(ctx->lgfp);
|
||||
fclose(fp);
|
||||
if (logxfovr != LGXF_ASK) {
|
||||
mode = ((logxfovr == LGXF_OVR) ? 2 : 1);
|
||||
} else
|
||||
|
Reference in New Issue
Block a user