Perdition fails to parse nis map

Christophe Ségui <[email protected]>
Newsgroups gmane.mail.perdition.user
Message-ID <[email protected]>
Hi there,

I just found a bug in latest perdition version in the nis backend. The 
syscal ypmatch is used with the wrong args. I just posted a bug to 
debian with a patch to fix this issue.

Here it is so, if you aggree, please merge it and we can have nis 
support back !

thanks,

Christophe

______________________________________________
Perdition-users mailing list
[email protected]
http://lists.vergenet.net/listinfo/perdition-users
nis_perdition.patch (text/x-patch, 543 B)
Signed-off-by: jazz <[email protected]>
---
 perdition/db/nis/perditiondb_nis.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: perdition-1.19~rc3/perdition/db/nis/perditiondb_nis.c
===================================================================
--- perdition-1.19~rc3.orig/perdition/db/nis/perditiondb_nis.c
+++ perdition-1.19~rc3/perdition/db/nis/perditiondb_nis.c
@@ -87,7 +87,7 @@ int dbserver_get(
   res = yp_match(domain, 
 	map,
 	key_str,
-	strlen(key_str) + 1,
+	strlen(key_str),
 	str_return,
 	len_return);
christophe_segui.vcf (text/x-vcard, 533 B)
begin:vcard
fn;quoted-printable:Christophe S=C3=A9gui
n;quoted-printable:S=C3=A9gui;Christophe
org;quoted-printable;quoted-printable:Universit=C3=A9 Paul Sabatier & CNRS;Service Informatique - Institut de Math=C3=A9matiques de Toulouse - UMR52=
	19
adr;quoted-printable;dom:118 Route de Narbonne;;Universit=C3=A9 Paul Sabatier;Toulouse;;31062
email;internet:[email protected]
title:Responsable de Service
tel;work:05 61 55 63 78
tel;fax:05 61 55 75 99
url:http://www.math.univ-toulouse.fr
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.