]> git.ipfire.org Git - thirdparty/krb5.git/commit
Allow modifications of empty profiles 1334/head
authorGreg Hudson <ghudson@mit.edu>
Sun, 31 Mar 2024 16:30:18 +0000 (12:30 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 17 Apr 2024 21:59:41 +0000 (17:59 -0400)
commitfc54edd1dc047aedb211beaa544c5e000fbdb7a6
tree586603203e52e66bb0d7138da95301ec49f31205
parentd6186c447f9ec85b9f5fb11f315db45c7648e919
Allow modifications of empty profiles

Add the notion of a memory-only prf_data_t object, indicated by an
empty filespec field and appropriate flags (do not reload, always
dirty, not part of shared trees).  Do nothing when flushing a
memory-only data object to its backing file.  When setting up an empty
profile for read/write access, create a memory-only data object
instead of crashing.

Move prf_data_t mutex initialization into profile_make_prf_data(),
simplifying its callers.

ticket: 9110
src/util/profile/prof_file.c
src/util/profile/prof_int.h
src/util/profile/prof_set.c
src/util/profile/t_profile.c