[virt-tools-list] [PATCH 1/4] Fix reversed logic for ssh port setting

Guido Günther agx at sigxcpu.org
Fri Aug 12 17:50:15 UTC 2011


/me grabs a brown paper bag.
---
 src/virt-viewer-app.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
-- 
1.7.5.4




More information about the virt-tools-list mailing list