# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/heimdal/emacs-pop.diff # Copyright (C) 2007 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- diff -urN emacs-22.0.97.orig/lib-src/pop.c emacs-22.0.97/lib-src/pop.c --- emacs-22.0.97.orig/lib-src/pop.c 2007-03-19 09:36:41.000000000 +1000 +++ emacs-22.0.97/lib-src/pop.c 2007-04-09 10:56:32.000000000 +1000 @@ -1181,16 +1181,16 @@ krb5_free_principal (kcontext, server); if (rem) { - if (err_ret && err_ret->text.length) + if (err_ret && err_ret->e_data->length) { strcpy (pop_error, KRB_ERROR); strncat (pop_error, error_message (rem), ERROR_MAX - sizeof (KRB_ERROR)); strncat (pop_error, " [server says '", ERROR_MAX - strlen (pop_error) - 1); - strncat (pop_error, err_ret->text.data, + strncat (pop_error, err_ret->e_data->data, min (ERROR_MAX - strlen (pop_error) - 1, - err_ret->text.length)); + err_ret->e_data->length)); strncat (pop_error, "']", ERROR_MAX - strlen (pop_error) - 1); } diff -urN emacs-22.0.97.orig/src/config.in emacs-22.0.97/src/config.in --- emacs-22.0.97.orig/src/config.in 2007-01-27 02:33:17.000000000 +1000 +++ emacs-22.0.97/src/config.in 2007-04-09 10:58:18.000000000 +1000 @@ -283,7 +283,7 @@ #undef HAVE_KERBEROS_KRB_H /* Define to 1 if you have the header file. */ -#undef HAVE_KRB5_H +#define HAVE_KRB5_H /* Define to 1 if you have the header file. */ #undef HAVE_KRB_H @@ -325,7 +325,7 @@ #undef HAVE_LIBKRB4 /* Define to 1 if you have the `krb5' library (-lkrb5). */ -#undef HAVE_LIBKRB5 +#define HAVE_LIBKRB5 /* Define to 1 if you have the `kstat' library (-lkstat). */ #undef HAVE_LIBKSTAT