summaryrefslogtreecommitdiff
path: root/chat/i2cbd
diff options
context:
space:
mode:
authorchristos <christos@pkgsrc.org>2006-05-10 20:16:40 +0000
committerchristos <christos@pkgsrc.org>2006-05-10 20:16:40 +0000
commitb04a3321234657d0a5df5ca94c1c330995c8f167 (patch)
tree28ef4cc1acf7d20af3bc5fd57dcf69c22f46a181 /chat/i2cbd
parent183c3a17217ce20121c796626858acde5b3e295e (diff)
downloadpkgsrc-b04a3321234657d0a5df5ca94c1c330995c8f167.tar.gz
Fixed reversed test in db->get. strlen never returns negative.
Diffstat (limited to 'chat/i2cbd')
-rw-r--r--chat/i2cbd/Makefile3
-rw-r--r--chat/i2cbd/distinfo3
-rw-r--r--chat/i2cbd/patches/patch-ad21
3 files changed, 25 insertions, 2 deletions
diff --git a/chat/i2cbd/Makefile b/chat/i2cbd/Makefile
index 47ebef2c2ff..f89e656fbc3 100644
--- a/chat/i2cbd/Makefile
+++ b/chat/i2cbd/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.18 2006/04/30 23:36:09 jwise Exp $
+# $NetBSD: Makefile,v 1.19 2006/05/10 20:16:40 christos Exp $
#
DISTNAME= i2cbd-2.0_BETA3
+PKGREVISION= 1
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.draga.com/~jwise/i2cb/
diff --git a/chat/i2cbd/distinfo b/chat/i2cbd/distinfo
index a37868a4bf8..0d647842cb1 100644
--- a/chat/i2cbd/distinfo
+++ b/chat/i2cbd/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2006/04/30 23:36:10 jwise Exp $
+$NetBSD: distinfo,v 1.10 2006/05/10 20:16:40 christos Exp $
SHA1 (i2cbd-2.0_BETA3.tar.gz) = 10f68eda9891d1f2e07de7e1f9de12b60e6862f0
RMD160 (i2cbd-2.0_BETA3.tar.gz) = 25825fa0b22aa34764193c678269dd97e3daf032
@@ -6,6 +6,7 @@ Size (i2cbd-2.0_BETA3.tar.gz) = 59259 bytes
SHA1 (patch-aa) = 0151f8e68be11e759425d2e9569df3d465c50931
SHA1 (patch-ab) = bca8ecb0f41be6405333f2bcf7722dc725ffc777
SHA1 (patch-ac) = ca8e6b7324a22fb9ecabf2374e34febb55196e28
+SHA1 (patch-ad) = 4a5c9276b10905d7487e3191f5008fc9418743ae
SHA1 (patch-af) = 7b5257dc24f0b34a3205bd1accd83a068210a5fc
SHA1 (patch-ag) = b354e4ed7dce00e13f87579b252650d7b921b1aa
SHA1 (patch-ah) = 94ee816e45d2f26e94a22678cc090fa4fb4f0daa
diff --git a/chat/i2cbd/patches/patch-ad b/chat/i2cbd/patches/patch-ad
new file mode 100644
index 00000000000..26b92e9a687
--- /dev/null
+++ b/chat/i2cbd/patches/patch-ad
@@ -0,0 +1,21 @@
+$NetBSD: patch-ad,v 1.3 2006/05/10 20:16:40 christos Exp $
+--- src/access.c.orig 2003-10-24 16:47:49.000000000 -0400
++++ src/access.c 2006-05-10 16:09:58.000000000 -0400
+@@ -77,7 +77,7 @@
+ if (!userdb)
+ return -1;
+
+- if (strlen(password) <= 0)
++ if (strlen(password) == 0)
+ return -1;
+
+ strlcpy(kbuf, user, KEY_SIZE);
+@@ -86,7 +86,7 @@
+ key.data = kbuf;
+ key.size = strlen(kbuf);
+
+- if (!userdb->get(userdb, &key, &data, 0))
++ if (userdb->get(userdb, &key, &data, 0))
+ return -1;
+
+ strncpy(line, data.data, data.size);