File virtview-git-sshport.patch of Package virt-viewer

Subject: Fix inverted sshport test that broke SSH tunnelling
From: Daniel P. Berrange berrange@redhat.com Fri Aug 12 15:37:51 2011 +0100
Date: Fri Aug 12 15:37:51 2011 +0100:
Git: 754011f2bc5696466de5f45c3781c7a0cd961b9a


Index: virt-viewer-0.4.1/src/virt-viewer-app.c
===================================================================
--- virt-viewer-0.4.1.orig/src/virt-viewer-app.c
+++ virt-viewer-0.4.1/src/virt-viewer-app.c
@@ -319,7 +319,7 @@ virt_viewer_app_open_tunnel_ssh(const ch
 	int n = 0;
 
 	cmd[n++] = "ssh";
-	if (!sshport) {
+	if (sshport) {
 		cmd[n++] = "-p";
 		sprintf(portstr, "%d", sshport);
 		cmd[n++] = portstr;
openSUSE Build Service is sponsored by