pullup from trunk
authorAlexandra Ellwood <lxs@mit.edu>
Thu, 4 Nov 2004 19:21:12 +0000 (19:21 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Thu, 4 Nov 2004 19:21:12 +0000 (19:21 +0000)
ticket: 2750
version_fixed: 1.4

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-4@16859 dc483132-0cff-0310-8789-dd5450dbe970

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

index 1366bd4d1cbbb0063966a3082b67724a4311d42e..f475a84769af3b8dc23a46df3433796d28eb356a 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-26  Ken Raeburn  <raeburn@mit.edu>
 
        Permit exporting profile file data into a buffer.
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;