Profile library should not call rw_access earlier than needed
authorAlexandra Ellwood <lxs@mit.edu>
Tue, 27 May 2008 16:25:51 +0000 (16:25 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Tue, 27 May 2008 16:25:51 +0000 (16:25 +0000)
commit4130bdde9450dd7b399aa3650ef7ae3ff7d738da
tree33aea844c9614b43abb687ef63f5104663f88f89
parented90b10ddaaf6f681c0faa95f286a0bea84e5bb6
Profile library should not call rw_access earlier than needed

Call rw_access lazily so we only call access just before we need to
write to the file to avoid calling access as often.  Deprecated bit in
profile structures to track writability.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20341 dc483132-0cff-0310-8789-dd5450dbe970
src/util/profile/prof_file.c
src/util/profile/prof_init.c
src/util/profile/prof_int.h