mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Log file open mode lost a "b" in r5344. Windows at least needs log files to
be written in binary mode with the current code. [originally from svn r5353] [r5344 == f73fcb042423866a06b9e41b6934906a0fe9502e]
This commit is contained in:
parent
53d4c434e7
commit
5b15dca2da
@ -80,7 +80,7 @@ static void logfopen_callback(void *handle, int mode)
|
||||
if (mode == 0) {
|
||||
ctx->state = L_ERROR; /* disable logging */
|
||||
} else {
|
||||
fmode = (mode == 1 ? "a" : "w");
|
||||
fmode = (mode == 1 ? "ab" : "wb");
|
||||
ctx->lgfp = f_open(ctx->currlogfilename, fmode);
|
||||
if (ctx->lgfp)
|
||||
ctx->state = L_OPEN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user