]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
The console version of askappend() completely forgot to check
authorSimon Tatham <anakin@pobox.com>
Sun, 31 Mar 2002 16:28:06 +0000 (16:28 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 31 Mar 2002 16:28:06 +0000 (16:28 +0000)
cfg.logxfovr to see whether the user had already specified what
should happen to log files. Fixed.

[originally from svn r1613]

console.c

index 557c144772084d5d5be0f7a731cf3eb73824e622..1078986f7cbb349c9fde373e80104f2ad1336575 100644 (file)
--- a/console.c
+++ b/console.c
@@ -212,6 +212,9 @@ int askappend(char *filename)
 
     char line[32];
 
+    if (cfg.logxfovr != LGXF_ASK) {
+       return ((cfg.logxfovr == LGXF_OVR) ? 2 : 1);
+    }
     if (console_batch_mode) {
        fprintf(stderr, msgtemplate_batch, FILENAME_MAX, filename);
        fflush(stderr);