rpms/vinagre/devel vinagre-0.3-no-password-crash.patch, NONE, 1.1 vinagre.spec, 1.2, 1.3

Bastien Nocera (hadess) fedora-extras-commits at redhat.com
Thu Oct 25 16:18:34 UTC 2007


Author: hadess

Update of /cvs/pkgs/rpms/vinagre/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19088

Modified Files:
	vinagre.spec 
Added Files:
	vinagre-0.3-no-password-crash.patch 
Log Message:
* Thu Oct 25 2007 - Bastien Nocera <bnocera at redhat.com> - 0.3-2
- Fix crasher when setting a favourite with no password (#352371)


vinagre-0.3-no-password-crash.patch:

--- NEW FILE vinagre-0.3-no-password-crash.patch ---
--- vinagre-0.3/src/vinagre-favorites.c.old	2007-10-25 16:27:57.000000000 +0100
+++ vinagre-0.3/src/vinagre-favorites.c	2007-10-25 16:28:08.000000000 +0100
@@ -159,7 +159,7 @@ vinagre_favorites_add (VinagreConnection
 			      name,
 			      "port",
 			      conn->port);
-      if (strlen(conn->password) > 0)
+      if (conn->password != NULL && strlen(conn->password) > 0)
 	g_key_file_set_string (favorites,
 			       name,
 			       "password",


Index: vinagre.spec
===================================================================
RCS file: /cvs/pkgs/rpms/vinagre/devel/vinagre.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vinagre.spec	24 Sep 2007 01:41:09 -0000	1.2
+++ vinagre.spec	25 Oct 2007 16:18:00 -0000	1.3
@@ -1,12 +1,13 @@
 Name:		vinagre
 Version:	0.3
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	VNC client for the GNOME desktop
 
 Group:		Applications/System
 License:	GPLv2+
 URL:		http://www.gnome.org/~jwendell/vinagre/
 Source0:	http://www.gnome.org/~jwendell/vinagre/downloads/%{name}-%{version}.tar.gz
+Patch0:		vinagre-0.3-no-password-crash.patch
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -26,6 +27,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .no-pass-crash
 
 %build
 %configure --enable-avahi=yes
@@ -61,6 +63,9 @@
 %doc README NEWS COPYING AUTHORS
 
 %changelog
+* Thu Oct 25 2007 - Bastien Nocera <bnocera at redhat.com> - 0.3-2
+- Fix crasher when setting a favourite with no password (#352371)
+
 * Mon Sep 24 2007 - Bastien Nocera <bnocera at redhat.com> - 0.3-1
 - Update to 0.3
 




More information about the fedora-extras-commits mailing list