rpms/gobby/FC-6 gobby-0.4.1-filepath.patch, NONE, 1.1 gobby.spec, 1.19, 1.20

Luke Macken (lmacken) fedora-extras-commits at redhat.com
Tue Jan 9 01:44:04 UTC 2007


Author: lmacken

Update of /cvs/extras/rpms/gobby/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29779

Modified Files:
	gobby.spec 
Added Files:
	gobby-0.4.1-filepath.patch 
Log Message:
Add gobby-0.4.1-filepath.patch to fix pathname corruption (Bug #219002)

gobby-0.4.1-filepath.patch:

--- NEW FILE gobby-0.4.1-filepath.patch ---
--- src/main.cpp.orig	2007-01-08 14:23:17.000000000 -0500
+++ src/main.cpp	2007-01-08 14:25:29.000000000 -0500
@@ -185,10 +185,17 @@
 	{
 		// Make absolute filenames to understand the files
 		// from everywhere when we send them to another process
-		files[i - 1] = Glib::build_filename(
-			Glib::get_current_dir(),
-			argv[i]
-		);
+		if(Glib::path_is_absolute(argv[i]))
+		{
+			files[i - 1] = argv[i];
+		}
+		else
+		{
+			files[i - 1] = Glib::build_filename(
+				Glib::get_current_dir(),
+				argv[i]
+			);
+		}
 	}
 
 	Gobby::IconManager icon_mgr;


Index: gobby.spec
===================================================================
RCS file: /cvs/extras/rpms/gobby/FC-6/gobby.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- gobby.spec	1 Sep 2006 02:29:26 -0000	1.19
+++ gobby.spec	9 Jan 2007 01:43:34 -0000	1.20
@@ -1,12 +1,13 @@
 Name:           gobby
 Version:        0.4.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Free collaborative editor
 
 Group:          Applications/Internet
 License:        GPL
 URL:            http://gobby.0x539.de
 Source0:        http://releases.0x539.de/gobby/%{name}-%{version}.tar.gz
+Patch0:         %{name}-%{version}-filepath.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  libxml++-devel, gtksourceview-devel, gtkmm24-devel, obby-devel
@@ -27,6 +28,7 @@
 
 %prep
 %setup -q
+%patch0
 
 
 %build
@@ -68,6 +70,9 @@
 
 
 %changelog
+* Mon Jan  8 2007 Luke Macken <lmacken at redhat.com> - 0.4.1-2
+- Add gobby-0.4.1-filepath.patch to fix pathname corruption (Bug #219002)
+
 * Thu Aug 31 2006 Luke Macken <lmacken at redhat.com> - 0.4.1-1
 - 0.4.1
 




More information about the scm-commits mailing list