summaryrefslogtreecommitdiff
path: root/community/libvirt/openbsd-netcat-default.patch
blob: c884d21715e694ca344832728b6d4f817e82d662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff -wbBur libvirt-0.9.5/src/qemu/qemu_migration.c libvirt-0.9.5.my/src/qemu/qemu_migration.c
--- libvirt-0.9.5/src/qemu/qemu_migration.c	2011-09-16 16:37:07.000000000 +0400
+++ libvirt-0.9.5.my/src/qemu/qemu_migration.c	2011-09-20 20:44:39.000000000 +0400
@@ -1497,7 +1497,7 @@
                                            spec->dest.unix_socket.file);
         } else {
             const char *args[] = {
-                "nc", "-U", spec->dest.unix_socket.file, NULL
+                "nc.openbsd", "-U", spec->dest.unix_socket.file, NULL
             };
             ret = qemuMonitorMigrateToCommand(priv->mon, migrate_flags, args);
         }
diff -wbBur libvirt-0.9.5/src/remote/remote_driver.c libvirt-0.9.5.my/src/remote/remote_driver.c
--- libvirt-0.9.5/src/remote/remote_driver.c	2011-09-20 07:00:44.000000000 +0400
+++ libvirt-0.9.5.my/src/remote/remote_driver.c	2011-09-20 20:44:43.000000000 +0400
@@ -596,7 +596,7 @@
                                                 username,
                                                 !tty,
                                                 !verify,
-                                                netcat ? netcat : "nc",
+                                                netcat ? netcat : "nc.openbsd",
                                                 keyfile,
                                                 sockname)))
             goto failed;
diff -wbBur libvirt-0.9.5/src/rpc/virnetsocket.c libvirt-0.9.5.my/src/rpc/virnetsocket.c
--- libvirt-0.9.5/src/rpc/virnetsocket.c	2011-09-14 06:11:44.000000000 +0400
+++ libvirt-0.9.5.my/src/rpc/virnetsocket.c	2011-09-20 20:44:33.000000000 +0400
@@ -633,7 +633,7 @@
     if (noVerify)
         virCommandAddArgList(cmd, "-o", "StrictHostKeyChecking=no", NULL);
     virCommandAddArgList(cmd, nodename,
-                         netcat ? netcat : "nc",
+                         netcat ? netcat : "nc.openbsd",
                          "-U", path, NULL);
 
     return virNetSocketNewConnectCommand(cmd, retsock);