* prof_set.c: profile calls which set values should not fail if file is not writable...
authorAlexandra Ellwood <lxs@mit.edu>
Thu, 4 Nov 2004 19:18:23 +0000 (19:18 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Thu, 4 Nov 2004 19:18:23 +0000 (19:18 +0000)
ticket: 2750

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16858 dc483132-0cff-0310-8789-dd5450dbe970

src/util/profile/ChangeLog
src/util/profile/prof_set.c

index 79a263f95e81b7b8ece6df9ef9a5440bf1f9da02..1a28ddd96f8a784f14e3a87202f12ce21c37f6f4 100644 (file)
@@ -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.
index 67274c23fefdc1d963ba7363218466778605b6a2..85f228630c4cd00ad62c1b02ee6c9583b7e28508 100644 (file)
@@ -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;