[krbdev.mit.edu #6014] kinit should not fail when krb5 is missing

Alexandra Ellwood via RT rt-comment at krbdev.mit.edu
Mon Jul 7 15:49:44 EDT 2008


Only in ./KerberosFramework/Kerberos5/Sources/lib/krb5/os: .init_os_ctx.c.swp
diff -ur ../Kerberos.orig/KerberosFramework/Kerberos5/Sources/util/profile/prof_init.c ./KerberosFramework/Kerberos5/Sources/util/profile/prof_init.c
--- ../Kerberos.orig/KerberosFramework/Kerberos5/Sources/util/profile/prof_init.c	2007-03-28 13:07:50.000000000 -0700
+++ ./KerberosFramework/Kerberos5/Sources/util/profile/prof_init.c	2007-06-21 16:38:53.000000000 -0700
@@ -34,8 +34,11 @@
 	memset(profile, 0, sizeof(struct _profile_t));
 	profile->magic = PROF_MAGIC_PROFILE;
 
-        /* if the filenames list is not specified return an empty profile */
-        if ( files ) {
+	/*
+	 * If the filenames list is not specified or empty, return an empty
+	 * profile.
+	 */
+	if ( files && !PROFILE_LAST_FILESPEC(*files) ) {
 	    for (fs = files; !PROFILE_LAST_FILESPEC(*fs); fs++) {
 		retval = profile_open_file(*fs, &new_file);
 		/* if this file is missing, skip to the next */
Only in .: cscope.out




More information about the krb5-bugs mailing list