From e91be73ad46f25e74c66ef1d2f7cc611c6db78f0 Mon Sep 17 00:00:00 2001 From: David King Date: Apr 18 2015 12:28:17 +0000 Subject: Increase SPICE password limit --- diff --git a/vinagre-3.16.0-increase-spice-password-limit.patch b/vinagre-3.16.0-increase-spice-password-limit.patch new file mode 100644 index 0000000..e577f1e --- /dev/null +++ b/vinagre-3.16.0-increase-spice-password-limit.patch @@ -0,0 +1,35 @@ +From 033ab86042925c56d349c87e50d6849694909e54 Mon Sep 17 00:00:00 2001 +From: Mike DePaulo +Date: Fri, 3 Apr 2015 08:37:03 -0400 +Subject: Change SPICE passwords limited to 60 characters + +The limit for SPICE passowrds is much more than 8 characters. + +https://bugzilla.gnome.org/show_bug.cgi?id=747296 + +diff --git a/plugins/spice/vinagre-spice-tab.c b/plugins/spice/vinagre-spice-tab.c +index 0a26a00..38fb53b 100644 +--- a/plugins/spice/vinagre-spice-tab.c ++++ b/plugins/spice/vinagre-spice-tab.c +@@ -36,6 +36,9 @@ + + #define VINAGRE_SPICE_TAB_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), VINAGRE_TYPE_SPICE_TAB, VinagreSpiceTabPrivate)) + ++/* From spice-protocol.h */ ++#define SPICE_MAX_PASSWORD_LENGTH 60 ++ + typedef struct _VinagreSpiceDisplay + { + GtkWidget *display; +@@ -299,7 +302,7 @@ spice_main_channel_event_cb(SpiceChannel *channel, SpiceChannelEvent event, + name, + FALSE, + TRUE, +- 8, ++ SPICE_MAX_PASSWORD_LENGTH, + NULL, + &password, + &save_in_keyring)) +-- +cgit v0.10.2 + diff --git a/vinagre.spec b/vinagre.spec index b5b2442..83ed500 100644 --- a/vinagre.spec +++ b/vinagre.spec @@ -4,7 +4,7 @@ Name: vinagre Version: 3.16.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: VNC client for GNOME Group: Applications/System @@ -12,6 +12,8 @@ License: GPLv2+ URL: https://wiki.gnome.org/Apps/Vinagre #VCS: git:git://git.gnome.org/vinagre Source0: https://download.gnome.org/sources/%{name}/3.16/%{name}-%{version}.tar.xz +# Applied upstream and will be available in 3.16.2 +Patch0: vinagre-3.16.0-increase-spice-password-limit.patch %if 0%{?with_spice} BuildRequires: pkgconfig(spice-client-gtk-3.0) @@ -55,6 +57,7 @@ Apart from the VNC protocol, vinagre supports Spice and RDP. %prep %setup -q +%patch0 -p1 %build @@ -120,6 +123,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : %changelog +* Sat Apr 18 2015 David King - 3.16.0-2 +- Increase SPICE password limit + * Mon Mar 23 2015 Kalev Lember - 3.16.0-1 - Update to 3.16.0