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 - 2008 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 2007-12-07 17:40:01.000000000 +0200
  18. +++ ./modules/pam_access/pam_access.c 2008-07-22 19:47:47.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. #include <arpa/inet.h>
  25. #include <netdb.h>
  26. #include <sys/socket.h>
  27. --- ./modules/pam_unix/yppasswd_xdr.c.orig 2005-01-19 22:34:53.000000000 -0300
  28. +++ ./modules/pam_unix/yppasswd_xdr.c 2005-01-19 22:35:08.000000000 -0300
  29. @@ -13,8 +13,6 @@
  30. #include <security/_pam_aconf.h>
  31. #include <rpc/rpc.h>
  32. -#include <rpcsvc/yp_prot.h>
  33. -#include <rpcsvc/ypclnt.h>
  34. #include "yppasswd.h"
  35. bool_t
  36. --- ./modules/pam_unix/pam_unix_passwd.c.orig 2005-01-19 22:37:28.000000000 -0300
  37. +++ ./modules/pam_unix/pam_unix_passwd.c 2005-01-19 22:37:49.000000000 -0300
  38. @@ -54,8 +54,6 @@
  39. #include <sys/time.h>
  40. #include <sys/stat.h>
  41. #include <rpc/rpc.h>
  42. -#include <rpcsvc/yp_prot.h>
  43. -#include <rpcsvc/ypclnt.h>
  44. #ifdef USE_CRACKLIB
  45. #include <crack.h>
  46. --- Linux-PAM-0.99.2.1/modules/pam_unix/support.c.orig 2005-11-29 10:22:06.000000000 +0100
  47. +++ Linux-PAM-0.99.2.1/modules/pam_unix/support.c 2006-02-01 20:59:06.000000000 +0100
  48. @@ -21,7 +21,6 @@
  49. #include <ctype.h>
  50. #include <syslog.h>
  51. #include <sys/resource.h>
  52. -#include <rpcsvc/ypclnt.h>
  53. #include <security/_pam_macros.h>
  54. #include <security/pam_modules.h>
  55. @@ -257,25 +256,6 @@
  56. }
  57. }
  58. - if (!matched && nis) {
  59. - char *userinfo = NULL, *domain = NULL;
  60. - int len = 0, i;
  61. - len = yp_get_default_domain(&domain);
  62. - if (len == YPERR_SUCCESS) {
  63. - len = yp_bind(domain);
  64. - }
  65. - if (len == YPERR_SUCCESS) {
  66. - i = yp_match(domain, "passwd.byname", name,
  67. - strlen(name), &userinfo, &len);
  68. - yp_unbind(domain);
  69. - if ((i == YPERR_SUCCESS) && ((size_t)len < sizeof(buf))) {
  70. - strncpy(buf, userinfo, sizeof(buf) - 1);
  71. - buf[sizeof(buf) - 1] = '\0';
  72. - matched = 1;
  73. - }
  74. - }
  75. - }
  76. -
  77. if (matched && (ret != NULL)) {
  78. *ret = NULL;