diff options
-rw-r--r-- | security/pam-fprint/distinfo | 4 | ||||
-rw-r--r-- | security/pam-fprint/patches/patch-src_pam__fprint.c | 54 | ||||
-rw-r--r-- | security/pam-fprint/patches/patch-src_pam__fprint__enroll.c | 13 |
3 files changed, 70 insertions, 1 deletions
diff --git a/security/pam-fprint/distinfo b/security/pam-fprint/distinfo index cfe4c11be02..b6be2d1eca4 100644 --- a/security/pam-fprint/distinfo +++ b/security/pam-fprint/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.1.1.1 2009/02/26 21:52:00 plunky Exp $ +$NetBSD: distinfo,v 1.2 2012/11/23 12:30:01 joerg Exp $ SHA1 (pam_fprint-0.2.tar.bz2) = d52543cb2b4cb7d1a32ae30347a9053bc118f2cd RMD160 (pam_fprint-0.2.tar.bz2) = 483fcf6b70d4805b1da4f95acbd34c672275a4ba Size (pam_fprint-0.2.tar.bz2) = 72781 bytes SHA1 (patch-aa) = e2d6a4daa9d3e7d0af10807d1d81e74941b79089 +SHA1 (patch-src_pam__fprint.c) = 562bae58862dcc7efa2075c346ab1adb403769eb +SHA1 (patch-src_pam__fprint__enroll.c) = 36ea5c81a098e05740d098a96839b5ded4a64fd7 diff --git a/security/pam-fprint/patches/patch-src_pam__fprint.c b/security/pam-fprint/patches/patch-src_pam__fprint.c new file mode 100644 index 00000000000..78c063bfa88 --- /dev/null +++ b/security/pam-fprint/patches/patch-src_pam__fprint.c @@ -0,0 +1,54 @@ +$NetBSD: patch-src_pam__fprint.c,v 1.1 2012/11/23 12:30:01 joerg Exp $ + +--- src/pam_fprint.c.orig 2012-11-22 21:40:14.000000000 +0000 ++++ src/pam_fprint.c +@@ -21,12 +21,14 @@ + #include <unistd.h> + #include <sys/types.h> + #include <pwd.h> ++#include <stdlib.h> + #include <string.h> + + #include <fprint.h> + + #define PAM_SM_AUTH + #include <security/pam_modules.h> ++#include <security/pam_appl.h> + + static int send_info_msg(pam_handle_t *pamh, char *msg) + { +@@ -41,10 +43,10 @@ static int send_info_msg(pam_handle_t *p + + r = pam_get_item(pamh, PAM_CONV, (const void **) &pc); + if (r != PAM_SUCCESS) +- return; ++ return r; + + if (!pc || !pc->conv) +- return; ++ return PAM_SERVICE_ERR; + + return pc->conv(1, &msgp, &resp, pc->appdata_ptr); + } +@@ -62,10 +64,10 @@ static int send_err_msg(pam_handle_t *pa + + r = pam_get_item(pamh, PAM_CONV, (const void **) &pc); + if (r != PAM_SUCCESS) +- return; ++ return r; + + if (!pc || !pc->conv) +- return; ++ return PAM_SERVICE_ERR; + + return pc->conv(1, &msgp, &resp, pc->appdata_ptr); + } +@@ -97,7 +99,7 @@ static int find_dev_and_print(struct fp_ + struct fp_dscv_print *print; + struct fp_dscv_dev *ddev; + +- while (print = prints[i++]) { ++ while ((print = prints[i++]) != NULL) { + ddev = fp_dscv_dev_for_dscv_print(ddevs, print); + if (ddev) { + *_ddev = ddev; diff --git a/security/pam-fprint/patches/patch-src_pam__fprint__enroll.c b/security/pam-fprint/patches/patch-src_pam__fprint__enroll.c new file mode 100644 index 00000000000..48e42e0f940 --- /dev/null +++ b/security/pam-fprint/patches/patch-src_pam__fprint__enroll.c @@ -0,0 +1,13 @@ +$NetBSD: patch-src_pam__fprint__enroll.c,v 1.1 2012/11/23 12:30:01 joerg Exp $ + +--- src/pam_fprint_enroll.c.orig 2012-11-22 21:39:34.000000000 +0000 ++++ src/pam_fprint_enroll.c +@@ -47,7 +47,7 @@ static struct fp_dscv_dev *discover_devi + struct fp_dscv_dev *ddev = NULL; + int i; + +- for (i = 0; ddev = discovered_devs[i]; i++) { ++ for (i = 0; (ddev = discovered_devs[i]) != NULL; i++) { + struct fp_driver *drv = fp_dscv_dev_get_driver(ddev); + printf("Found device claimed by %s driver\n", + fp_driver_get_full_name(drv)); |