4b536f
# HG changeset patch
4b536f
# User Cole Robinson <crobinso@redhat.com>
4b536f
# Date 1271108754 14400
4b536f
# Node ID f09702cfdb03a8902c2dac88d26fec342759f35f
4b536f
# Parent  82cef5edeb6e4b660cacc603d00df0d0b6f90d66
4b536f
console: Fix VNC over ssh when using zsh on remote machine
4b536f
4b536f
diff -r 82cef5edeb6e -r f09702cfdb03 src/virtManager/console.py
4b536f
--- a/src/virtManager/console.py	Mon Apr 12 17:43:55 2010 -0400
4b536f
+++ b/src/virtManager/console.py	Mon Apr 12 17:45:54 2010 -0400
4b536f
@@ -521,7 +521,7 @@
4b536f
             "else"
4b536f
             "   CMD='nc %(nc_params)s';"
4b536f
             "fi;"
4b536f
-            "$CMD;" % {'nc_params': nc_params}
4b536f
+            "sh -c $CMD;" % {'nc_params': nc_params}
4b536f
         ]
4b536f
 
4b536f
         argv += nc_cmd
4b536f
# HG changeset patch
4b536f
# User Cole Robinson <crobinso@redhat.com>
4b536f
# Date 1271109105 14400
4b536f
# Node ID 907ee61e5558dbf8f0b7194d4882a19e66ee6437
4b536f
# Parent  c206b12a8c7aa6946bfdca39cc429dd7fd258f2a
4b536f
console: Actually fix SSH with zsh
4b536f
4b536f
diff -r c206b12a8c7a -r 907ee61e5558 src/virtManager/console.py
4b536f
--- a/src/virtManager/console.py	Mon Apr 12 17:46:45 2010 -0400
4b536f
+++ b/src/virtManager/console.py	Mon Apr 12 17:51:45 2010 -0400
4b536f
@@ -521,7 +521,7 @@
4b536f
             "else"
4b536f
             "   CMD='nc %(nc_params)s';"
4b536f
             "fi;"
4b536f
-            "sh -c $CMD;" % {'nc_params': nc_params}
4b536f
+            "sh -c \"$CMD\";" % {'nc_params': nc_params}
4b536f
         ]
4b536f
 
4b536f
         argv += nc_cmd