summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2004-11-04 19:18:23 +0000
committerAlexandra Ellwood <lxs@mit.edu>2004-11-04 19:18:23 +0000
commitc50f8f5cc7f64bd5c6b39ae025a762958a760640 (patch)
treea00189bea1dff0e4311c601b43fbeed38a7c0970 /src
parentdb16a09830ffdcc461b63178c0834727bd7aa4a5 (diff)
downloadkrb5-c50f8f5cc7f64bd5c6b39ae025a762958a760640.tar.gz
krb5-c50f8f5cc7f64bd5c6b39ae025a762958a760640.tar.xz
krb5-c50f8f5cc7f64bd5c6b39ae025a762958a760640.zip
* prof_set.c: profile calls which set values should not fail if file is not writable. You can now write to a different file with profile_flush_to_file() or buffer with profile_flush_to_buffer()
ticket: 2750 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16858 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/profile/ChangeLog7
-rw-r--r--src/util/profile/prof_set.c3
2 files changed, 7 insertions, 3 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog
index 79a263f95..1a28ddd96 100644
--- a/src/util/profile/ChangeLog
+++ b/src/util/profile/ChangeLog
@@ -1,3 +1,10 @@
+2004-11-04 Alexandra Ellwood <lxs@mit.edu>
+
+ * prof_set.c: profile calls which set values should not fail
+ if file is not writable. You can now write to a different
+ file with profile_flush_to_file() or buffer with
+ profile_flush_to_buffer().
+
2004-10-30 Ken Raeburn <raeburn@mit.edu>
* prof_int.h (STAT_ONCE_PER_SECOND): Define.
diff --git a/src/util/profile/prof_set.c b/src/util/profile/prof_set.c
index 67274c23f..85f228630 100644
--- a/src/util/profile/prof_set.c
+++ b/src/util/profile/prof_set.c
@@ -33,9 +33,6 @@ static errcode_t rw_setup(profile_t profile)
file = profile->first_file;
- if (!(file->data->flags & PROFILE_FILE_RW))
- return PROF_READ_ONLY;
-
retval = profile_lock_global();
if (retval)
return retval;