summaryrefslogtreecommitdiff
path: root/security/pam-dbm
diff options
context:
space:
mode:
authorscottr <scottr@pkgsrc.org>2010-03-21 06:54:10 +0000
committerscottr <scottr@pkgsrc.org>2010-03-21 06:54:10 +0000
commit43fd8d42d0c22b6bac4a3275aada6f7eb79912d5 (patch)
treeeeab8604c7ef62495b5545f459cf07d6ca180fa5 /security/pam-dbm
parent77d4611b01eb3690136be5046137ebb9d8b17053 (diff)
downloadpkgsrc-43fd8d42d0c22b6bac4a3275aada6f7eb79912d5.tar.gz
Store the result of dbm_fetch() before dbm_close() (apparently) clobbers it.
Diffstat (limited to 'security/pam-dbm')
-rw-r--r--security/pam-dbm/distinfo3
-rw-r--r--security/pam-dbm/patches/patch-ab15
2 files changed, 17 insertions, 1 deletions
diff --git a/security/pam-dbm/distinfo b/security/pam-dbm/distinfo
index 9db2091cc04..50766fb543c 100644
--- a/security/pam-dbm/distinfo
+++ b/security/pam-dbm/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2008/10/02 18:21:06 joerg Exp $
+$NetBSD: distinfo,v 1.5 2010/03/21 06:54:10 scottr Exp $
SHA1 (pam_dbm-0.2.tar.gz) = 9e9404bb4d8ed1e34c8198ad8e7a2b38735beb6c
RMD160 (pam_dbm-0.2.tar.gz) = bc4226a1cd3bd379e01b3245f3c6480d620dc2c3
Size (pam_dbm-0.2.tar.gz) = 109079 bytes
SHA1 (patch-aa) = a2a07a6cab8b38a44487c7ff1bbacc1966a0196a
+SHA1 (patch-ab) = ca25e09def5032056dc00cfea148e3d3e5053e5b
diff --git a/security/pam-dbm/patches/patch-ab b/security/pam-dbm/patches/patch-ab
new file mode 100644
index 00000000000..c82f3fdea2c
--- /dev/null
+++ b/security/pam-dbm/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2010/03/21 06:54:10 scottr Exp $
+--- pam_dbm.c.orig 2003-12-20 08:19:18.000000000 -0600
++++ pam_dbm.c
+@@ -78,10 +78,10 @@
+ "pam_dbm_authenticate: dbm_fetch(\"%s\") failed", key);
+ return -1;
+ }
++ strlcpy(buf, valdat.dptr, buflen);
+
+ dbm_close(dbm);
+
+- strlcpy(buf, valdat.dptr, buflen);
+ return 0;
+ }
+