rpms/bind/F-8 bind-9.5-libidn3.patch,NONE,1.1

Adam Tkac (atkac) fedora-extras-commits at redhat.com
Thu Dec 20 13:54:31 UTC 2007


Author: atkac

Update of /cvs/pkgs/rpms/bind/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22796

Added Files:
	bind-9.5-libidn3.patch 
Log Message:
- added patch


bind-9.5-libidn3.patch:

--- NEW FILE bind-9.5-libidn3.patch ---
diff -up bind-9.5.0b1/bin/dig/dighost.c.libidn3 bind-9.5.0b1/bin/dig/dighost.c
--- bind-9.5.0b1/bin/dig/dighost.c.libidn3	2007-12-20 13:24:27.000000000 +0100
+++ bind-9.5.0b1/bin/dig/dighost.c	2007-12-20 13:27:10.000000000 +0100
@@ -1859,10 +1859,13 @@ setup_lookup(dig_lookup_t *lookup) {
 	if (lookup->origin != NULL) {
 		result = libidn_locale_to_utf8 (lookup->origin->origin, utf8_str);
 		check_result (result, "convert origin to UTF-8");
-		if (len + strlen (utf8_str) < MXNAME)
-			(void) strcpy (utf8_name + len, utf8_str);
-		else
-			fatal ("Too long name + origin");
+		if (len > 0 && utf8_name[len - 1] != '.') {
+			utf8_name[len++] = '.';
+			if (len + strlen (utf8_str) < MXNAME)
+				(void) strcpy (utf8_name + len, utf8_str);
+			else
+				fatal ("Too long name + origin");
+		}
 	}
 
 	result = libidn_utf8_to_ascii (utf8_name, ascii_name);




More information about the fedora-extras-commits mailing list