+Wed Nov 6 16:24:56 1996 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * init_os_ctx.c (os_init_paths): Don't ignore errors found from
+ parsing the config file. Currently, we return an error if
+ the profile isn't found. In the future we can maybe do
+ something better with intelligent defaulting if krb5.conf
+ doesn't exist, but we don't have this today.
+
+Wed Oct 23 01:15:40 1996 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * configure.in, Makefile.in: Check to see if compile in -lgen
+ exists; if so, add it to the SHLIB_LIBS line, since it
+ will be needed by an_to_ln.c, in all probability.
+
Thu Aug 22 15:19:47 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
* an_to_ln.c (db_an_to_ln): Remove references to dead BERK_DB_DBM
if (retval)
ctx->profile = 0;
+ if (retval == ENOENT)
+ retval = KRB5_CONFIG_CANTOPEN;
+
+ if ((retval == PROF_SECTION_NOTOP) ||
+ (retval == PROF_SECTION_SYNTAX) ||
+ (retval == PROF_RELATION_SYNTAX) ||
+ (retval == PROF_EXTRA_CBRACE) ||
+ (retval == PROF_MISSING_OBRACE))
+ return KRB5_CONFIG_BADFORMAT;
+
return retval;
}
retval = os_init_paths(ctx, FALSE);
/*
- * We ignore errors if the profile can not be initialized,
- * since there must be a way to get a context even if the
- * default krb5.conf file doesn't exist.
+ * If there's an error in the profile, return an error. Just
+ * ignoring the error is a Bad Thing (tm).
*/
- return 0;
+ return retval;
}
krb5_error_code INTERFACE