summaryrefslogtreecommitdiff
path: root/security/gnupg
diff options
context:
space:
mode:
authorchris <chris>2002-09-30 22:41:30 +0000
committerchris <chris>2002-09-30 22:41:30 +0000
commit462f38e108355dae8f35bd062ef83e2b6cbd16ab (patch)
tree6d3993368b68bf031e62f9989bba358f0342de06 /security/gnupg
parent2518fd17c43297b5d92e7d16e4528e7f484e4822 (diff)
downloadpkgsrc-462f38e108355dae8f35bd062ef83e2b6cbd16ab.tar.gz
fixup dlsym error checks. An error is indicated by dlsym returning NULL not
dlerror returning something valid.
Diffstat (limited to 'security/gnupg')
-rw-r--r--security/gnupg/distinfo3
-rw-r--r--security/gnupg/patches/patch-af22
2 files changed, 24 insertions, 1 deletions
diff --git a/security/gnupg/distinfo b/security/gnupg/distinfo
index 21f3c99d9dd..b9acca5a474 100644
--- a/security/gnupg/distinfo
+++ b/security/gnupg/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2002/08/25 21:50:37 jlam Exp $
+$NetBSD: distinfo,v 1.11 2002/09/30 22:41:30 chris Exp $
SHA1 (gnupg-1.0.7.tar.gz) = 46da038c60143fa49abae2fae6fcbd0f58f7a46e
Size (gnupg-1.0.7.tar.gz) = 2399025 bytes
@@ -9,3 +9,4 @@ SHA1 (patch-ab) = ce3b5ff0331e51ca6cd11b969e8df3719ca5d547
SHA1 (patch-ac) = 9e3d0c6a7b828e52f5a773591f87e4a9072ad698
SHA1 (patch-ad) = 55ca924c9aefe9eeca44b301ac523e7ebb2514e9
SHA1 (patch-ae) = ff58490a6505e333f776efa7cafaa269c4833597
+SHA1 (patch-af) = 804f28db69c9d0aa7c1cfd3237b9a5adb1e95ad9
diff --git a/security/gnupg/patches/patch-af b/security/gnupg/patches/patch-af
new file mode 100644
index 00000000000..c3653f509fa
--- /dev/null
+++ b/security/gnupg/patches/patch-af
@@ -0,0 +1,22 @@
+$NetBSD: patch-af,v 1.1 2002/09/30 22:41:31 chris Exp $
+
+--- cipher/dynload.c.orig Mon Sep 30 23:34:34 2002
++++ cipher/dynload.c Mon Sep 30 23:35:18 2002
+@@ -287,7 +287,7 @@
+ goto failure;
+ }
+ name = (char**)dlsym(el->handle, SYMBOL_VERSION);
+- if( (err=dlerror()) ) {
++ if( (name == NULL) && (err=dlerror()) ) {
+ log_error("%s: not a gnupg extension: %s\n", el->name, err );
+ goto failure;
+ }
+@@ -332,7 +332,7 @@
+
+ #ifdef HAVE_DL_DLOPEN
+ sym = dlsym(el->handle, SYMBOL_ENUM);
+- if( (err=dlerror()) ) {
++ if( (sym == NULL) && (err=dlerror()) ) {
+ log_error("%s: invalid gnupg extension: %s\n", el->name, err );
+ goto failure;
+ }