From: Alexandra Ellwood Date: Wed, 13 Aug 2008 19:52:22 +0000 (+0000) Subject: Open log file for appending only, not also reading X-Git-Tag: krb5-1.7-alpha1~498 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=adc0c70f48a466f7038c24045685b9ebef572509;p=krb5.git 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 --- 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;