projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The back ends now contain their own copies of the Config structure,
[u/mdw/putty]
/
logging.c
diff --git
a/logging.c
b/logging.c
index
9e8b9f8
..
c2c4ff1
100644
(file)
--- a/
logging.c
+++ b/
logging.c
@@
-118,7
+118,10
@@
void logfopen(void *handle)
if (ctx->lgfp) {
int i;
fclose(ctx->lgfp);
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 */
if (i == 1)
writemod[0] = 'a'; /* set append mode */
else if (i == 0) { /* cancelled */