diff --git a/krb5-1.4.3-enospc.patch b/krb5-1.4.3-enospc.patch new file mode 100644 index 0000000..c5fcae9 --- /dev/null +++ b/krb5-1.4.3-enospc.patch @@ -0,0 +1,30 @@ +If the error message is going to be ambiguous, try to give the user some clue +by returning the last error reported by the OS. + +--- krb5-1.4.3/src/clients/kinit/kinit.c 2006-02-06 13:50:06.000000000 -0500 ++++ krb5-1.4.3/src/clients/kinit/kinit.c 2006-02-06 13:49:41.000000000 -0500 +@@ -34,6 +34,7 @@ + #else + #undef HAVE_KRB524 + #endif ++#include + #include + #include + #include +@@ -846,8 +847,14 @@ + + code = krb5_cc_initialize(k5->ctx, k5->cc, k5->me); + if (code) { +- com_err(progname, code, "when initializing cache %s", +- opts->k5_cache_name?opts->k5_cache_name:""); ++ if ((code == KRB5_CC_IO) && (errno != 0)) { ++ com_err(progname, code, "when initializing cache %s: %s", ++ opts->k5_cache_name?opts->k5_cache_name:"", ++ strerror(errno)); ++ } else { ++ com_err(progname, code, "when initializing cache %s", ++ opts->k5_cache_name?opts->k5_cache_name:""); ++ } + goto cleanup; + } + diff --git a/krb5.spec b/krb5.spec index 10774ed..8b68d37 100644 --- a/krb5.spec +++ b/krb5.spec @@ -10,7 +10,7 @@ Summary: The Kerberos network authentication system. Name: krb5 Version: 1.4.3 -Release: 3 +Release: 4 # Maybe we should explode from the now-available-to-everybody tarball instead? # http://web.mit.edu/kerberos/dist/krb5/1.4/krb5-1.4.3-signed.tar Source0: krb5-%{version}.tar.gz @@ -73,6 +73,7 @@ Patch40: krb5-1.4.1-telnet-environ.patch Patch41: krb5-1.2.7-login-lpass.patch Patch42: krb5-1.4.3-pthread_np.patch Patch43: krb5-1.4.3-kdc_max_dgram_size.patch +Patch44: krb5-1.4.3-enospc.patch License: MIT, freely distributable. URL: http://web.mit.edu/kerberos/www/ Group: System Environment/Libraries @@ -137,6 +138,10 @@ network uses Kerberos, this package should be installed on every workstation. %changelog +* Mon Feb 6 2006 Nalin Dahyabhai 1.4.3-4 +- give a little bit more information to the user when kinit gets the catch-all + I/O error (#180175) + * Thu Jan 19 2006 Nalin Dahyabhai 1.4.3-3 - rebuild properly when pthread_mutexattr_setrobust_np() is defined but not declared, such as with recent glibc when _GNU_SOURCE isn't being used @@ -901,6 +906,7 @@ workstation. %patch42 -p1 -b .pthread_np # Don't apply this until we hear back from upstream. #%patch43 -p1 -b .kdc_max_dgram_size +%patch44 -p1 -b .enospc cp src/krb524/README README.krb524 find . -type f -name "*.info-dir" -exec rm -fv "{}" ";" gzip doc/*.ps