OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.3 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../heimdal/emacs-pop.diff
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. diff -urN emacs-21.4.orig/lib-src/pop.c emacs-21.4/lib-src/pop.c
  17. --- emacs-21.4.orig/lib-src/pop.c 2002-05-17 13:26:37.000000000 +0200
  18. +++ emacs-21.4/lib-src/pop.c 2005-08-16 16:17:31.121406750 +0200
  19. @@ -1188,16 +1188,16 @@
  20. krb5_free_principal (kcontext, server);
  21. if (rem)
  22. {
  23. - if (err_ret && err_ret->text.length)
  24. + if (err_ret && err_ret->e_data->length)
  25. {
  26. strcpy (pop_error, KRB_ERROR);
  27. strncat (pop_error, error_message (rem),
  28. ERROR_MAX - sizeof (KRB_ERROR));
  29. strncat (pop_error, " [server says '",
  30. ERROR_MAX - strlen (pop_error) - 1);
  31. - strncat (pop_error, err_ret->text.data,
  32. + strncat (pop_error, err_ret->e_data->data,
  33. min (ERROR_MAX - strlen (pop_error) - 1,
  34. - err_ret->text.length));
  35. + err_ret->e_data->length));
  36. strncat (pop_error, "']",
  37. ERROR_MAX - strlen (pop_error) - 1);
  38. }
  39. diff -urN emacs-21.4.orig/src/config.in emacs-21.4/src/config.in
  40. --- emacs-21.4.orig/src/config.in 2002-07-09 00:23:31.000000000 +0200
  41. +++ emacs-21.4/src/config.in 2005-08-16 16:21:06.554870500 +0200
  42. @@ -198,12 +198,12 @@
  43. #undef HAVE_LIBKRB4
  44. #undef HAVE_LIBDES
  45. #undef HAVE_LIBDES425
  46. -#undef HAVE_LIBKRB5
  47. +#define HAVE_LIBKRB5
  48. #undef HAVE_LIBCRYPTO
  49. #undef HAVE_LIBK5CRYPTO
  50. #undef HAVE_LIBCOM_ERR
  51. /* header files */
  52. -#undef HAVE_KRB5_H
  53. +#define HAVE_KRB5_H
  54. #undef HAVE_DES_H
  55. #undef HAVE_KRB_H
  56. #undef HAVE_KERBEROSIV_DES_H
  57. @@ -213,7 +213,7 @@
  58. #undef HAVE_COM_ERR_H
  59. /* GSS-API libraries and headers */
  60. -#undef HAVE_LIBGSSAPI_KRB5
  61. +#define HAVE_LIBGSSAPI_KRB5
  62. #undef HAVE_LIBGSSAPI
  63. #undef HAVE_GSSAPI_H