rpms/mc/devel mc-mceditcrash.patch, NONE, 1.1 mc-findfix.patch, 1.1, 1.2 mc.spec, 1.159, 1.160
Jindrich Novy
jnovy at fedoraproject.org
Thu Mar 18 13:30:16 UTC 2010
- Previous message: rpms/lyx/EL-5 .cvsignore, 1.20, 1.21 lyx.spec, 1.57, 1.58 sources, 1.19, 1.20
- Next message: rpms/lyx/devel .cvsignore, 1.42, 1.43 lyx.spec, 1.108, 1.109 sources, 1.40, 1.41
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jnovy
Update of /cvs/pkgs/rpms/mc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2994
Modified Files:
mc-findfix.patch mc.spec
Added Files:
mc-mceditcrash.patch
Log Message:
* Thu Mar 18 2010 Jindrich Novy <jnovy at redhat.com> 4.7.1-3
- patches from upstream:
- fix crash in mcedit ran stand-alone (#571570)
- fix segfault when trying to panelize find results (#569823)
mc-mceditcrash.patch:
execute.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- NEW FILE mc-mceditcrash.patch ---
commit d2a9152cec8db6d21af77bb91490666a85e48d55
Author: Andrew Borodin <aborodin at vmail.ru>
Date: Sat Mar 6 11:08:18 2010 +0300
Ticket #2087: crash in standalone editor and viewer.
Don't try update file manager panels if mc runs as standalone editor or viewer.
Signed-off-by: Andrew Borodin <aborodin at vmail.ru>
diff --git a/src/execute.c b/src/execute.c
index e8f9ad3..16c0898 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -304,8 +304,10 @@ toggle_panels (void)
}
#endif /* HAVE_SUBSHELL_SUPPORT */
- update_panels (UP_OPTIMIZE, UP_KEEPSEL);
- update_xterm_title_path ();
+ if ((view_one_file == NULL) && (edit_one_file == NULL)) {
+ update_panels (UP_OPTIMIZE, UP_KEEPSEL);
+ update_xterm_title_path ();
+ }
repaint_screen ();
}
mc-findfix.patch:
find.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: mc-findfix.patch
===================================================================
RCS file: /cvs/pkgs/rpms/mc/devel/mc-findfix.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- mc-findfix.patch 2 Mar 2010 14:54:48 -0000 1.1
+++ mc-findfix.patch 18 Mar 2010 13:30:14 -0000 1.2
@@ -1,22 +1,21 @@
-diff -up mc-4.7.1/src/find.c.findfix mc-4.7.1/src/find.c
---- mc-4.7.1/src/find.c.findfix 2010-02-26 12:34:03.000000000 +0100
-+++ mc-4.7.1/src/find.c 2010-03-02 15:46:55.000000000 +0100
-@@ -1004,8 +1004,7 @@ init_find_vars (void)
- static char *
- make_fullname (const char *dirname, const char *filename)
- {
--
-- if (strcmp(dirname, ".") == 0 || strcmp(dirname, "."PATH_SEP_STR) == 0)
-+ if (dirname == NULL || strcmp(dirname, ".") == 0 || strcmp(dirname, "."PATH_SEP_STR) == 0)
- return g_strdup (filename);
- if (strncmp(dirname, "."PATH_SEP_STR, 2) == 0)
- return concat_dir_and_file (dirname + 2, filename);
-@@ -1258,7 +1257,7 @@ find_file (const char *start_dir, const
- if ((le->text == NULL) || (entry->data == NULL))
+commit 7b9226c5da3a81fb758bee70aafe05bb64d37464
+Author: Andrew Borodin <aborodin at vmail.ru>
+Date: Sun Feb 28 18:19:52 2010 +0300
+
+ Ticket #2068: fixed segfault in panelization of file find result.
+
+ Signed-off-by: Andrew Borodin <aborodin at vmail.ru>
+
+diff --git a/src/find.c b/src/find.c
+index dc38e5f..883cb07 100644
+--- a/src/find.c
++++ b/src/find.c
+@@ -1255,7 +1255,7 @@ find_file (const char *start_dir, const char *pattern, const char *content,
+ const char *lc_filename = NULL;
+ WLEntry *le = (WLEntry *) entry->data;
+
+- if ((le->text == NULL) || (entry->data == NULL))
++ if ((le->text == NULL) || (le->data == NULL))
continue;
-- if (content_pattern != NULL)
-+ if (content_pattern != NULL && strchr (le->text + 4, ':'))
- lc_filename = strchr (le->text + 4, ':') + 1;
- else
- lc_filename = le->text + 4;
+ if (content_pattern != NULL)
Index: mc.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mc/devel/mc.spec,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -p -r1.159 -r1.160
--- mc.spec 2 Mar 2010 14:54:48 -0000 1.159
+++ mc.spec 18 Mar 2010 13:30:15 -0000 1.160
@@ -1,7 +1,7 @@
Summary: User-friendly text console file manager and visual shell
Name: mc
Version: 4.7.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Epoch: 1
License: GPLv2
Group: System Environment/Shells
@@ -14,6 +14,7 @@ Requires: dev >= 3.3-3
Patch0: mc-extensions.patch
Patch1: mc-findfix.patch
+Patch2: mc-mceditcrash.patch
%description
Midnight Commander is a visual shell much like a file manager, only
@@ -26,6 +27,7 @@ specific files.
%setup -q
%patch0 -p1 -b .extensions
%patch1 -p1 -b .findfix
+%patch2 -p1 -b .mceditcrash
%build
export CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $RPM_OPT_FLAGS"
@@ -84,6 +86,11 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_libexecdir}/mc/extfs.d
%changelog
+* Thu Mar 18 2010 Jindrich Novy <jnovy at redhat.com> 4.7.1-3
+- patches from upstream:
+ - fix crash in mcedit ran stand-alone (#571570)
+ - fix segfault when trying to panelize find results (#569823)
+
* Tue Mar 2 2010 Jindrich Novy <jnovy at redhat.com> 4.7.1-2
- fix segfault when panelizing search results (#569823)
- Previous message: rpms/lyx/EL-5 .cvsignore, 1.20, 1.21 lyx.spec, 1.57, 1.58 sources, 1.19, 1.20
- Next message: rpms/lyx/devel .cvsignore, 1.42, 1.43 lyx.spec, 1.108, 1.109 sources, 1.40, 1.41
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list