From adc0c70f48a466f7038c24045685b9ebef572509 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Wed, 13 Aug 2008 19:52:22 +0000 Subject: [PATCH] Open log file for appending only, not also reading ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20651 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/kadm5/logger.c b/src/lib/kadm5/logger.c index b9db64094..a1edd495d 100644 --- a/src/lib/kadm5/logger.c +++ b/src/lib/kadm5/logger.c @@ -421,7 +421,7 @@ krb5_klog_init(krb5_context kcontext, char *ename, char *whoami, krb5_boolean do * Check for append/overwrite, then open the file. */ if (cp[4] == ':' || cp[4] == '=') { - f = fopen(&cp[5], (cp[4] == ':') ? "a+" : "w"); + f = fopen(&cp[5], (cp[4] == ':') ? "a" : "w"); if (f) { set_cloexec_file(f); log_control.log_entries[i].lfu_filep = f; -- 2.26.2