updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libvirt-git / openbsd-netcat.patch
blob90169ac2dde2543b6a519f791ce36bc46a6ee4ef
1 diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
2 index decb0f2..4feb912 100644
3 --- a/src/qemu/qemu_migration.c
4 +++ b/src/qemu/qemu_migration.c
5 @@ -1589,7 +1589,7 @@ qemuMigrationRun(struct qemud_driver *driver,
6 spec->dest.unix_socket.file);
7 } else {
8 const char *args[] = {
9 - "nc", "-U", spec->dest.unix_socket.file, NULL
10 + "nc.openbsd", "-U", spec->dest.unix_socket.file, NULL
12 ret = qemuMonitorMigrateToCommand(priv->mon, migrate_flags, args);
14 diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
15 index e98ebd7..dbba481 100644
16 --- a/src/remote/remote_driver.c
17 +++ b/src/remote/remote_driver.c
18 @@ -610,7 +610,7 @@ doRemoteOpen (virConnectPtr conn,
19 username,
20 !tty,
21 !verify,
22 - netcat ? netcat : "nc",
23 + netcat ? netcat : "nc.openbsd",
24 keyfile,
25 sockname)))
26 goto failed;
27 diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c
28 index e4eff49..3be7766 100644
29 --- a/src/rpc/virnetsocket.c
30 +++ b/src/rpc/virnetsocket.c
31 @@ -639,7 +639,7 @@ int virNetSocketNewConnectSSH(const char *nodename,
32 virCommandAddArgList(cmd, "-o", "StrictHostKeyChecking=no", NULL);
34 if (!netcat)
35 - netcat = "nc";
36 + netcat = "nc.openbsd";
38 virCommandAddArgList(cmd, nodename, "sh", "-c", NULL);