Fix ssh tunnelling

This commit is contained in:
Daniel P. Berrange 2011-08-12 15:44:16 +01:00
parent 91859e7afa
commit a57bb22447
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,19 @@
commit 754011f2bc5696466de5f45c3781c7a0cd961b9a
Author: Daniel P. Berrange <berrange@redhat.com>
Date: Fri Aug 12 15:37:51 2011 +0100
Fix inverted sshport test that broke SSH tunnelling
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index cf7811e..71284b6 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -319,7 +319,7 @@ virt_viewer_app_open_tunnel_ssh(const char *sshhost,
int n = 0;
cmd[n++] = "ssh";
- if (!sshport) {
+ if (sshport) {
cmd[n++] = "-p";
sprintf(portstr, "%d", sshport);
cmd[n++] = portstr;

View File

@ -21,12 +21,13 @@
Name: virt-viewer Name: virt-viewer
Version: 0.4.1 Version: 0.4.1
Release: 1%{?dist}%{?extra_release} Release: 2%{?dist}%{?extra_release}
Summary: Virtual Machine Viewer Summary: Virtual Machine Viewer
Group: Applications/System Group: Applications/System
License: GPLv2+ License: GPLv2+
URL: http://virt-manager.org/ URL: http://virt-manager.org/
Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
Patch1: %{name}-%{version}-sshport.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: openssh-clients Requires: openssh-clients
@ -81,6 +82,7 @@ browsers.
%prep %prep
%setup -q %setup -q
%patch1 -p1
%build %build
@ -136,6 +138,9 @@ rm -rf $RPM_BUILD_ROOT
%endif %endif
%changelog %changelog
* Fri Aug 12 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.1-2
- Fix ssh tunnelling
* Thu Aug 4 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.1-1 * Thu Aug 4 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.1-1
- Update to 0.4.1 release - Update to 0.4.1 release