From: Mark Eichin Date: Mon, 2 Oct 1995 19:21:45 +0000 (+0000) Subject: * init_os_ctx.c (krb5_os_init_context): use profile_init_path for X-Git-Tag: krb5-1.0-beta6~953 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=38d15018a9981248beb529772c84e993d8ada014;p=krb5.git * init_os_ctx.c (krb5_os_init_context): use profile_init_path for unix, and DEFAULT_PROFILE_PATH. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6915 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index a53263f62..77749c969 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 26 22:46:01 1995 Mark Eichin + + * init_os_ctx.c (krb5_os_init_context): use profile_init_path for + unix, and DEFAULT_PROFILE_PATH. + Fri Sep 29 16:31:47 1995 Theodore Y. Ts'o * osconfig.c: Remove krb5_lname_file; it's not used any more. diff --git a/src/lib/krb5/os/init_os_ctx.c b/src/lib/krb5/os/init_os_ctx.c index 1f96f4c81..eebc651ef 100644 --- a/src/lib/krb5/os/init_os_ctx.c +++ b/src/lib/krb5/os/init_os_ctx.c @@ -135,22 +135,24 @@ krb5_os_init_context(ctx) filenames[1] = 0; } + retval = profile_init(filenames, &ctx->profile); + #else /* _WINDOWS */ #ifdef _MACINTOSH filenames[0] = GetMacProfilePathName(); filenames[1] = 0; + retval = profile_init(filenames, &ctx->profile); #else /* * When the profile routines are later enhanced, we will try * including a config file from user's home directory here. */ - name = getenv("KRB5_CONFIG"); - filenames[0] = name ? name : DEFAULT_PROFILE_FILENAME; - filenames[1] = 0; + if(!name) name = DEFAULT_PROFILE_PATH; + + retval = profile_init_path(name, &ctx->profile); #endif /* _MACINTOSH */ #endif /* _WINDOWS */ - retval = profile_init(filenames, &ctx->profile); if (retval) ctx->profile = 0;