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.

84 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/pam-no_nis.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./modules/pam_access/pam_access.c.orig 2005-01-19 22:30:46.000000000 -0300
  18. +++ ./modules/pam_access/pam_access.c 2005-01-19 22:31:24.000000000 -0300
  19. @@ -41,7 +41,6 @@
  20. #include <errno.h>
  21. #include <ctype.h>
  22. #include <sys/utsname.h>
  23. -#include <rpcsvc/ypclnt.h>
  24. #ifndef BROKEN_NETWORK_MATCH
  25. # include <netdb.h>
  26. --- ./modules/pam_unix/yppasswd_xdr.c.orig 2005-01-19 22:34:53.000000000 -0300
  27. +++ ./modules/pam_unix/yppasswd_xdr.c 2005-01-19 22:35:08.000000000 -0300
  28. @@ -13,8 +13,6 @@
  29. #include <security/_pam_aconf.h>
  30. #include <rpc/rpc.h>
  31. -#include <rpcsvc/yp_prot.h>
  32. -#include <rpcsvc/ypclnt.h>
  33. #include "yppasswd.h"
  34. bool_t
  35. --- ./modules/pam_unix/pam_unix_passwd.c.orig 2005-01-19 22:37:28.000000000 -0300
  36. +++ ./modules/pam_unix/pam_unix_passwd.c 2005-01-19 22:37:49.000000000 -0300
  37. @@ -54,8 +54,6 @@
  38. #include <sys/time.h>
  39. #include <sys/stat.h>
  40. #include <rpc/rpc.h>
  41. -#include <rpcsvc/yp_prot.h>
  42. -#include <rpcsvc/ypclnt.h>
  43. #ifdef USE_CRACKLIB
  44. #include <crack.h>
  45. --- Linux-PAM-0.99.2.1/modules/pam_unix/support.c.orig 2005-11-29 10:22:06.000000000 +0100
  46. +++ Linux-PAM-0.99.2.1/modules/pam_unix/support.c 2006-02-01 20:59:06.000000000 +0100
  47. @@ -21,7 +21,6 @@
  48. #include <ctype.h>
  49. #include <syslog.h>
  50. #include <sys/resource.h>
  51. -#include <rpcsvc/ypclnt.h>
  52. #include <security/_pam_macros.h>
  53. #include <security/pam_modules.h>
  54. @@ -257,25 +256,6 @@
  55. }
  56. }
  57. - if (!matched && nis) {
  58. - char *userinfo = NULL, *domain = NULL;
  59. - int len = 0, i;
  60. - len = yp_get_default_domain(&domain);
  61. - if (len == YPERR_SUCCESS) {
  62. - len = yp_bind(domain);
  63. - }
  64. - if (len == YPERR_SUCCESS) {
  65. - i = yp_match(domain, "passwd.byname", name,
  66. - strlen(name), &userinfo, &len);
  67. - yp_unbind(domain);
  68. - if ((i == YPERR_SUCCESS) && ((size_t)len < sizeof(buf))) {
  69. - strncpy(buf, userinfo, sizeof(buf) - 1);
  70. - buf[sizeof(buf) - 1] = '\0';
  71. - matched = 1;
  72. - }
  73. - }
  74. - }
  75. -
  76. if (matched && (ret != NULL)) {
  77. *ret = NULL;