X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/6f81f628c3273ff6644bc7a32661a05c62d31db0..bf61b5660299e88399304cd8eb9bacddc73a765b:/logging.c diff --git a/logging.c b/logging.c index 9e8b9f83..c2c4ff15 100644 --- a/logging.c +++ b/logging.c @@ -118,7 +118,10 @@ void logfopen(void *handle) if (ctx->lgfp) { int i; fclose(ctx->lgfp); - i = askappend(ctx->frontend, ctx->currlogfilename); + if (cfg.logxfovr != LGXF_ASK) { + i = ((cfg.logxfovr == LGXF_OVR) ? 2 : 1); + } else + i = askappend(ctx->frontend, ctx->currlogfilename); if (i == 1) writemod[0] = 'a'; /* set append mode */ else if (i == 0) { /* cancelled */