Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>2009-02-24 01:40:09 +0300
committerJacob Nevins <jacobn@chiark.greenend.org.uk>2009-02-24 01:40:09 +0300
commit40be9eeedda9e79130231180b9a02397fba015bf (patch)
treeab943e845e111f8cb5ecf19553e92f62bf33c65d /logging.c
parent35e004ffeea741024affb2b167c6011ab1a6a470 (diff)
Stop attempting to make session logs private on Unix. This was introduced in
r7084 at the same time as sensible permissions when writing private key files; however, it causes an assertion failure whenever an attempt is made to append to an existing log file on Unix, and it's not clear what "is_private" *should* do for append, so revert to log file security being the user's responsibility. (Fixes Ubuntu LP#212711.) [originally from svn r8461] [r7084 == 4fa9564c909c589bcccc95d57fae5469063c1759]
Diffstat (limited to 'logging.c')
-rw-r--r--logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/logging.c b/logging.c
index 17924c5a..f1e37295 100644
--- a/logging.c
+++ b/logging.c
@@ -85,7 +85,7 @@ static void logfopen_callback(void *handle, int mode)
ctx->state = L_ERROR; /* disable logging */
} else {
fmode = (mode == 1 ? "ab" : "wb");
- ctx->lgfp = f_open(ctx->currlogfilename, fmode, TRUE);
+ ctx->lgfp = f_open(ctx->currlogfilename, fmode, FALSE);
if (ctx->lgfp)
ctx->state = L_OPEN;
else