virt-manager/virtman-netcat.diff

20 lines
821 B
Diff

Index: virt-manager-0.8.4/src/virtManager/console.py
===================================================================
--- virt-manager-0.8.4.orig/src/virtManager/console.py
+++ virt-manager-0.8.4/src/virtManager/console.py
@@ -515,11 +515,11 @@ class vmmConsolePages(gobject.GObject):
#
nc_params = "%s %s" % (vncaddr, str(vncport))
nc_cmd = [\
- "nc -q 2>&1 | grep -q 'requires an argument';"
+ "netcat -q 2>&1 | grep -q 'requires an argument';"
"if [ $? -eq 0 ] ; then"
- " CMD='nc -q 0 %(nc_params)s';"
+ " CMD='netcat -q 0 %(nc_params)s';"
"else"
- " CMD='nc %(nc_params)s';"
+ " CMD='netcat %(nc_params)s';"
"fi;"
"$CMD;" % {'nc_params': nc_params}
]