summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-08-13 19:52:22 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-08-13 19:52:22 +0000
commitadc0c70f48a466f7038c24045685b9ebef572509 (patch)
treea0d86e8e2c7e72e88c460137ec5ff607ac7f4ad4
parent8bf03064e30cc9d01a3c2177e8cd13a65b248a6c (diff)
downloadkrb5-adc0c70f48a466f7038c24045685b9ebef572509.tar.gz
krb5-adc0c70f48a466f7038c24045685b9ebef572509.tar.xz
krb5-adc0c70f48a466f7038c24045685b9ebef572509.zip
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
-rw-r--r--src/lib/kadm5/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/kadm5/logger.c b/src/lib/kadm5/logger.c
index b9db640949..a1edd495d0 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;