~ubuntu-branches/ubuntu/breezy/pam/breezy

« back to all changes in this revision

Viewing changes to debian/patches/044_hackish_like_auth_fix

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-06-28 14:28:08 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040628142808-adikk7vtfg3pzcjw
Tags: 0.76-22
* Add uploaders
* Document location of repository
* Fix options containing arguments in pam_unix, Closes: #254904

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
diff -urN Linux-PAM-0.72/modules/pam_unix/pam_unix_auth.c Linux-PAM-0.72.new/modules/pam_unix/pam_unix_auth.c
2
 
--- Linux-PAM-0.72/modules/pam_unix/pam_unix_auth.c     Mon Jan 21 15:02:45 2002
3
 
+++ Linux-PAM-0.72.new/modules/pam_unix/pam_unix_auth.c Mon Jan 21 15:01:38 2002
4
 
@@ -84,7 +84,7 @@
5
 
                D(("recording return code for next time [%d]",  \
6
 
                                        retval));               \
7
 
                pam_set_data(pamh, "unix_setcred_return",       \
8
 
-                               (void *) &retval, NULL);        \
9
 
+                               (void *) retval, NULL);         \
10
 
        }                                                       \
11
 
        D(("done. [%s]", pam_strerror(pamh, retval)));          \
12
 
        return retval;                                          \
13
 
@@ -192,10 +192,8 @@
14
 
        retval = PAM_SUCCESS;
15
 
 
16
 
        if (on(UNIX_LIKE_AUTH, ctrl)) {
17
 
-               int *pretval = &retval;
18
 
-
19
 
                D(("recovering return code from auth call"));
20
 
-               pam_get_data(pamh, "unix_setcred_return", (const void **) &pretval);
21
 
+               pam_get_data(pamh, "unix_setcred_return", (void **) &retval);
22
 
                pam_set_data(pamh, "unix_setcred_return", NULL, NULL);
23
 
                D(("recovered data indicates that old retval was %d", retval));
24
 
        }