Fix krb5_get_profile to create a new profile duplicating the list of
authorKen Raeburn <raeburn@mit.edu>
Sat, 24 Jun 2006 02:39:52 +0000 (02:39 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 24 Jun 2006 02:39:52 +0000 (02:39 +0000)
commitf9b6c2de5c160844e2fb5cb8ea7c6ef4292ee4c4
treee8b1cc02464414e5d5fc15807e030b5570f4e115
parent036d40a6c10d88b9d6b8507ae1319790d9d8d61b
Fix krb5_get_profile to create a new profile duplicating the list of
files from the one in the provided context, instead of constructing
and checking the file list from scratch.  Uses a new function in the
profile library, not put into the public API yet.

* util/profile/prof_init.c (profile_copy): New function.
* util/profile/prof_int.h (profile_copy): Declare it.
* lib/krb5/os/Makefile.in (LOCALINCLUDES): Look in the profile source dir.
* lib/krb5/os/init_os_ctx.c (krb5_get_profile): Replace all the previous code
with a call to profile_copy.

ticket: 3925

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18209 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/os/Makefile.in
src/lib/krb5/os/init_os_ctx.c
src/util/profile/prof_init.c
src/util/profile/prof_int.h