projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bf0306
)
Open log file for appending only, not also reading
author
Alexandra Ellwood
<lxs@mit.edu>
Wed, 13 Aug 2008 19:52:22 +0000
(19:52 +0000)
committer
Alexandra Ellwood
<lxs@mit.edu>
Wed, 13 Aug 2008 19:52:22 +0000
(19:52 +0000)
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20651
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/kadm5/logger.c
patch
|
blob
|
history
diff --git
a/src/lib/kadm5/logger.c
b/src/lib/kadm5/logger.c
index b9db6409494cf1e3629fa71f62f76cdcbec11a75..a1edd495d071af0561e4cfaf8eaeae8de742dd74 100644
(file)
--- 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;