mirror of the now-defunct rocklinux.org
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.

210 lines
5.4 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/shadow/no-chauthtok.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./src/chage.c.orig 2004-12-22 17:32:12.194686152 +0100
  20. +++ ./src/chage.c 2004-12-22 17:34:47.019149256 +0100
  21. @@ -748,21 +748,6 @@
  22. SYSLOG ((LOG_INFO, "changed password expiry for %s", name));
  23. #ifdef USE_PAM
  24. - if (!lflg) {
  25. - if (retval == PAM_SUCCESS) {
  26. - retval = pam_chauthtok (pamh, 0);
  27. - if (retval != PAM_SUCCESS) {
  28. - pam_end (pamh, retval);
  29. - }
  30. - }
  31. -
  32. - if (retval != PAM_SUCCESS) {
  33. - fprintf (stderr, _("%s: PAM chauthtok failed\n"),
  34. - Prog);
  35. - exit (1);
  36. - }
  37. - }
  38. -
  39. if (retval == PAM_SUCCESS)
  40. pam_end (pamh, PAM_SUCCESS);
  41. --- ./src/chpasswd.c.orig 2004-12-22 17:35:32.017308496 +0100
  42. +++ ./src/chpasswd.c 2004-12-22 17:34:59.981178728 +0100
  43. @@ -325,18 +325,6 @@
  44. pw_unlock ();
  45. #ifdef USE_PAM
  46. - if (retval == PAM_SUCCESS) {
  47. - retval = pam_chauthtok (pamh, 0);
  48. - if (retval != PAM_SUCCESS) {
  49. - pam_end (pamh, retval);
  50. - }
  51. - }
  52. -
  53. - if (retval != PAM_SUCCESS) {
  54. - fprintf (stderr, _("%s: PAM chauthtok failed\n"), Prog);
  55. - exit (1);
  56. - }
  57. -
  58. if (retval == PAM_SUCCESS)
  59. pam_end (pamh, PAM_SUCCESS);
  60. #endif /* USE_PAM */
  61. --- ./src/groupadd.c.orig 2004-12-22 17:35:52.601179272 +0100
  62. +++ ./src/groupadd.c 2004-12-22 17:35:57.214477944 +0100
  63. @@ -584,18 +584,6 @@
  64. close_files ();
  65. #ifdef USE_PAM
  66. - if (retval == PAM_SUCCESS) {
  67. - retval = pam_chauthtok (pamh, 0);
  68. - if (retval != PAM_SUCCESS) {
  69. - pam_end (pamh, retval);
  70. - }
  71. - }
  72. -
  73. - if (retval != PAM_SUCCESS) {
  74. - fprintf (stderr, _("%s: PAM chauthtok failed\n"), Prog);
  75. - exit (1);
  76. - }
  77. -
  78. if (retval == PAM_SUCCESS)
  79. pam_end (pamh, PAM_SUCCESS);
  80. #endif /* USE_PAM */
  81. --- ./src/groupdel.c.orig 2004-12-22 17:36:03.971450728 +0100
  82. +++ ./src/groupdel.c 2004-12-22 17:36:08.384779800 +0100
  83. @@ -402,18 +402,6 @@
  84. close_files ();
  85. #ifdef USE_PAM
  86. - if (retval == PAM_SUCCESS) {
  87. - retval = pam_chauthtok (pamh, 0);
  88. - if (retval != PAM_SUCCESS) {
  89. - pam_end (pamh, retval);
  90. - }
  91. - }
  92. -
  93. - if (retval != PAM_SUCCESS) {
  94. - fprintf (stderr, _("%s: PAM chauthtok failed\n"), Prog);
  95. - exit (1);
  96. - }
  97. -
  98. if (retval == PAM_SUCCESS)
  99. pam_end (pamh, PAM_SUCCESS);
  100. #endif /* USE_PAM */
  101. --- ./src/groupmod.c.orig 2004-12-22 17:36:16.650523216 +0100
  102. +++ ./src/groupmod.c 2004-12-22 17:36:20.521934672 +0100
  103. @@ -596,18 +596,6 @@
  104. close_files ();
  105. #ifdef USE_PAM
  106. - if (retval == PAM_SUCCESS) {
  107. - retval = pam_chauthtok (pamh, 0);
  108. - if (retval != PAM_SUCCESS) {
  109. - pam_end (pamh, retval);
  110. - }
  111. - }
  112. -
  113. - if (retval != PAM_SUCCESS) {
  114. - fprintf (stderr, _("%s: PAM chauthtok failed\n"), Prog);
  115. - exit (1);
  116. - }
  117. -
  118. if (retval == PAM_SUCCESS)
  119. pam_end (pamh, PAM_SUCCESS);
  120. #endif /* USE_PAM */
  121. --- ./src/newusers.c.orig 2004-12-22 17:36:27.011948040 +0100
  122. +++ ./src/newusers.c 2004-12-22 17:36:31.626246560 +0100
  123. @@ -598,18 +598,6 @@
  124. (void) pw_unlock ();
  125. #ifdef USE_PAM
  126. - if (retval == PAM_SUCCESS) {
  127. - retval = pam_chauthtok (pamh, 0);
  128. - if (retval != PAM_SUCCESS) {
  129. - pam_end (pamh, retval);
  130. - }
  131. - }
  132. -
  133. - if (retval != PAM_SUCCESS) {
  134. - fprintf (stderr, _("%s: PAM chauthtok failed\n"), Prog);
  135. - exit (1);
  136. - }
  137. -
  138. if (retval == PAM_SUCCESS)
  139. pam_end (pamh, PAM_SUCCESS);
  140. #endif /* USE_PAM */
  141. --- ./src/useradd.c.orig 2004-12-22 17:36:37.990279080 +0100
  142. +++ ./src/useradd.c 2004-12-22 17:36:41.877688104 +0100
  143. @@ -1776,18 +1776,6 @@
  144. close_files ();
  145. #ifdef USE_PAM
  146. - if (retval == PAM_SUCCESS) {
  147. - retval = pam_chauthtok (pamh, 0);
  148. - if (retval != PAM_SUCCESS) {
  149. - pam_end (pamh, retval);
  150. - }
  151. - }
  152. -
  153. - if (retval != PAM_SUCCESS) {
  154. - fprintf (stderr, _("%s: PAM chauthtok failed\n"), Prog);
  155. - exit (1);
  156. - }
  157. -
  158. if (retval == PAM_SUCCESS)
  159. pam_end (pamh, PAM_SUCCESS);
  160. #endif /* USE_PAM */
  161. --- ./src/userdel.c.orig 2004-12-22 17:36:45.031208696 +0100
  162. +++ ./src/userdel.c 2004-12-22 17:36:48.645659216 +0100
  163. @@ -807,17 +807,6 @@
  164. user_cancel (user_name);
  165. close_files ();
  166. #ifdef USE_PAM
  167. - if (retval == PAM_SUCCESS) {
  168. - retval = pam_chauthtok (pamh, 0);
  169. - if (retval != PAM_SUCCESS)
  170. - pam_end (pamh, retval);
  171. - }
  172. -
  173. - if (retval != PAM_SUCCESS) {
  174. - fprintf (stderr, _("%s: PAM chauthtok failed\n"), Prog);
  175. - exit (E_PW_UPDATE);
  176. - }
  177. -
  178. if (retval == PAM_SUCCESS)
  179. pam_end (pamh, PAM_SUCCESS);
  180. #endif /* USE_PAM */
  181. --- ./src/usermod.c.orig 2004-12-22 17:36:51.806178744 +0100
  182. +++ ./src/usermod.c 2004-12-22 17:36:55.669591416 +0100
  183. @@ -1487,18 +1487,6 @@
  184. exit (E_GRP_UPDATE);
  185. #ifdef USE_PAM
  186. - if (retval == PAM_SUCCESS) {
  187. - retval = pam_chauthtok (pamh, 0);
  188. - if (retval != PAM_SUCCESS) {
  189. - pam_end (pamh, retval);
  190. - }
  191. - }
  192. -
  193. - if (retval != PAM_SUCCESS) {
  194. - fprintf (stderr, _("%s: PAM chauthtok failed\n"), Prog);
  195. - exit (1);
  196. - }
  197. -
  198. if (retval == PAM_SUCCESS)
  199. pam_end (pamh, PAM_SUCCESS);
  200. #endif /* USE_PAM */