rpms/libfm/devel libfm-0.1.11-path-removal-sanity-check.patch, 1.1, 1.2 libfm.spec, 1.12, 1.13
Mamoru Tasaka
mtasaka at fedoraproject.org
Sat May 29 06:18:54 UTC 2010
- Previous message: rpms/libfm/F-13 libfm-0.1.11-path-removal-sanity-check.patch, 1.1, 1.2 libfm.spec, 1.11, 1.12
- Next message: rpms/ircd-ratbox/F-13 ircd-ratbox-2.2.8-cache_c.patch, NONE, 1.1 import.log, 1.1, 1.2 ircd-ratbox.spec, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mtasaka
Update of /cvs/extras/rpms/libfm/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv6319/devel
Modified Files:
libfm-0.1.11-path-removal-sanity-check.patch libfm.spec
Log Message:
Use revised upstream patch
libfm-0.1.11-path-removal-sanity-check.patch:
gnome-terminal-wrapper.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
Index: libfm-0.1.11-path-removal-sanity-check.patch
===================================================================
RCS file: /cvs/extras/rpms/libfm/devel/libfm-0.1.11-path-removal-sanity-check.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- libfm-0.1.11-path-removal-sanity-check.patch 28 May 2010 17:51:49 -0000 1.1
+++ libfm-0.1.11-path-removal-sanity-check.patch 29 May 2010 06:18:53 -0000 1.2
@@ -1,22 +1,29 @@
+commit ad0cbac423bd916a5dd3549de068c5d6bd5a56b8
+Author: Hong Jen Yee (PCMan) <pcman.tw at gmail.com>
+Date: Sat May 29 13:02:34 2010 +0800
+
+ Fix #3008676: gnome-terminal wrapper crashes with certain PATH.
+
diff --git a/src/gnome-terminal-wrapper.c b/src/gnome-terminal-wrapper.c
-index 44134bb..45629ee 100644
+index 44134bb..14d3d82 100644
--- a/src/gnome-terminal-wrapper.c
+++ b/src/gnome-terminal-wrapper.c
-@@ -78,9 +78,14 @@ int main(int argc, char** argv)
+@@ -78,9 +78,15 @@ int main(int argc, char** argv)
}
/* Remove /usr/lib/libfm from PATH */
path = g_getenv("PATH");
- sep = strchr(path, ':');
- path = sep + 1;
- g_setenv("PATH", path, TRUE);
-+ /* Sanity check here... */
-+ sep = NULL;
-+ if (path) sep = strchr(path, ':');
-+ if (sep) path = sep + 1;
-+ if (sep && path && *path)
-+ g_setenv("PATH", path, TRUE);
-+ else
-+ g_unsetenv("PATH");
++ if(path && g_str_has_prefix(path, PACKAGE_LIB_DIR))
++ {
++ sep = strchr(path, ':');
++ if(sep)
++ {
++ path = sep + 1;
++ g_setenv("PATH", path, TRUE);
++ }
++ }
if((argc < 2) && terminal) /* only execute the temrinal emulator */
{
Index: libfm.spec
===================================================================
RCS file: /cvs/extras/rpms/libfm/devel/libfm.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- libfm.spec 28 May 2010 17:51:49 -0000 1.12
+++ libfm.spec 29 May 2010 06:18:53 -0000 1.13
@@ -5,7 +5,7 @@
Name: libfm
Version: 0.1.11
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: GIO-based library for file manager-like programs
Group: System Environment/Libraries
@@ -22,9 +22,10 @@ Patch0: libfm-0.1.9-pref-apps.pa
Patch2: libfm-0.1.11-gterm-argc.patch
# Issue in sorting by name in ja_JP.UTF-8, upstream bug 3002788
Patch3: libfm-0.1.11-sort-by-name-in-japanese.patch
-# Patches need discussing with the upstream
# gnome-terminal wrapper crashes with certain path setting
+# upstream bug 3008676
Patch4: libfm-0.1.11-path-removal-sanity-check.patch
+# Patches need discussing with the upstream
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gtk2-devel >= 2.16.0
@@ -200,7 +201,7 @@ update-mime-database %{_datadir}/mime &>
%changelog
-* Sat May 29 2010 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.1.11-6
+* Sat May 29 2010 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.1.11-7
- Fix crash of gnome-terminal wrapper with certain path settings
(bug 596598, 597270)
- Previous message: rpms/libfm/F-13 libfm-0.1.11-path-removal-sanity-check.patch, 1.1, 1.2 libfm.spec, 1.11, 1.12
- Next message: rpms/ircd-ratbox/F-13 ircd-ratbox-2.2.8-cache_c.patch, NONE, 1.1 import.log, 1.1, 1.2 ircd-ratbox.spec, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list