From 6adc78f726d61a1ff67505d9f61daf0b621614c3 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Mar 27 2008 13:19:56 +0000 Subject: - don't segfault when hint or help files are missing (#439025), thanks to Tomas Heinrich - fix displaying of 8bit encoded files in UTF-8 (#426756), thanks to Andrew Zabolotny - don't gzip man pages, leave it to brp-compress --- diff --git a/mc-hintchk.patch b/mc-hintchk.patch new file mode 100644 index 0000000..d4efe75 --- /dev/null +++ b/mc-hintchk.patch @@ -0,0 +1,15 @@ +diff -up mc-4.6.2-pre1/src/util.c.hintchk mc-4.6.2-pre1/src/util.c +--- mc-4.6.2-pre1/src/util.c.hintchk 2008-03-27 12:39:54.000000000 +0100 ++++ mc-4.6.2-pre1/src/util.c 2008-03-27 12:46:39.000000000 +0100 +@@ -995,6 +995,11 @@ load_mc_home_file (const char *filename, + if (hintfile != hintfile_base) + g_free (hintfile_base); + ++ if (!data) { ++ g_free(hintfile); ++ return NULL; ++ } ++ + if (allocated_filename) + *allocated_filename = hintfile; + else diff --git a/mc.spec b/mc.spec index d0fcc38..1db7bfb 100644 --- a/mc.spec +++ b/mc.spec @@ -1,7 +1,7 @@ Summary: User-friendly text console file manager and visual shell Name: mc Version: 4.6.2 -Release: 2.pre1%{?dist} +Release: 3.pre1%{?dist} Epoch: 1 License: GPLv2 Group: System Environment/Shells @@ -30,6 +30,7 @@ Patch15: mc-prompt.patch Patch16: mc-refresh.patch Patch17: mc-preserveattr.patch Patch18: mc-lzma.patch +Patch19: mc-hintchk.patch %description Midnight Commander is a visual shell much like a file manager, only @@ -59,6 +60,7 @@ specific files. %patch16 -p1 -b .refresh %patch17 -p1 -b .preserveattr %patch18 -p1 -b .lzmavfs +%patch19 -p1 -b .hintchk # convert files in /lib to UTF-8 pushd lib @@ -149,8 +151,7 @@ mv -f $RPM_BUILD_ROOT%{_datadir}/mc/syntax/Syntax $RPM_BUILD_ROOT%{_sysconfdir}/ for l in es hu it pl ru sr; do mkdir -p $RPM_BUILD_ROOT%{_mandir}/${l} mkdir -p $RPM_BUILD_ROOT%{_mandir}/${l}/man1 -gzip -nf9 doc/${l}/mc.1 -install -m 644 doc/${l}/mc.1.gz $RPM_BUILD_ROOT%{_mandir}/${l}/man1 +install -m 644 doc/${l}/mc.1 $RPM_BUILD_ROOT%{_mandir}/${l}/man1 done for I in /etc/pam.d/mcserv \ @@ -175,12 +176,12 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/mc/* %attr(4711, vcsa, root) %{_libexecdir}/mc/cons.saver %{_mandir}/man1/* -%lang(es) %{_mandir}/es/man1/mc.1.gz -%lang(hu) %{_mandir}/hu/man1/mc.1.gz -%lang(it) %{_mandir}/it/man1/mc.1.gz -%lang(pl) %{_mandir}/pl/man1/mc.1.gz -%lang(ru) %{_mandir}/ru/man1/mc.1.gz -%lang(sr) %{_mandir}/sr/man1/mc.1.gz +%lang(es) %{_mandir}/es/man1/mc.1* +%lang(hu) %{_mandir}/hu/man1/mc.1* +%lang(it) %{_mandir}/it/man1/mc.1* +%lang(pl) %{_mandir}/pl/man1/mc.1* +%lang(ru) %{_mandir}/ru/man1/mc.1* +%lang(sr) %{_mandir}/sr/man1/mc.1* %{_sysconfdir}/profile.d/* %config %{_sysconfdir}/mc/syntax/Syntax %config %{_sysconfdir}/mc/mc.charsets @@ -197,6 +198,13 @@ rm -rf $RPM_BUILD_ROOT %dir %{_libexecdir}/mc %changelog +* Thu Mar 27 2008 Jindrich Novy 4.6.2-3.pre1 +- don't segfault when hint or help files are missing (#439025), + thanks to Tomas Heinrich +- fix displaying of 8bit encoded files in UTF-8 (#426756), + thanks to Andrew Zabolotny +- don't gzip man pages, leave it to brp-compress + * Fri Mar 7 2008 Jindrich Novy 4.6.2-2.pre1 - add lzma vfs support by Lasse Collin - update extensions patch to use xdg-open