[man-db] - resolves: #855632 fixed SIGABRT crash

pschiffe pschiffe at fedoraproject.org
Wed Oct 24 16:11:45 UTC 2012


commit 7eb2871dd532da34e7783154689f43414dcf6498
Author: Peter Schiffer <pschiffe at redhat.com>
Date:   Thu Oct 18 21:37:38 2012 +0200

    - resolves: #855632
      fixed SIGABRT crash

 man-db-2.6.1-locale-fallback.patch |    2 +-
 man-db.spec                        |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/man-db-2.6.1-locale-fallback.patch b/man-db-2.6.1-locale-fallback.patch
index 7a81d78..e749d5a 100644
--- a/man-db-2.6.1-locale-fallback.patch
+++ b/man-db-2.6.1-locale-fallback.patch
@@ -17,7 +17,7 @@ diff -upr man-db-2.6.1.orig/lib/encodings.c man-db-2.6.1/lib/encodings.c
 +	if (!supported) {
 +		if (strlen (charset) >= (size_t) 5
 +				&& strncmp (charset, "UTF-8", (size_t) 5) == 0) {
-+			locale = "en_US.UTF-8";
++			locale = xstrdup("en_US.UTF-8");
 +			if (setlocale (LC_CTYPE, locale)) {
 +				setlocale (LC_CTYPE, saved_locale);
 +				return locale;
diff --git a/man-db.spec b/man-db.spec
index f209fc5..47d821f 100644
--- a/man-db.spec
+++ b/man-db.spec
@@ -124,6 +124,8 @@ install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
 - resolves: #858577
   updated to 2.6.3
 - cleaned .spec file
+- resolves: #855632
+  fixed SIGABRT crash
 
 * Tue Jul 31 2012 Peter Schiffer <pschiffe at redhat.com> - 2.6.2-5
 - resolves: #841431


More information about the scm-commits mailing list