termux-packages/x11-packages/qemu-system/qemu-2.12.0_migration_exec....

22 lines
951 B
Diff

diff -uNr qemu-2.12.0/migration/exec.c qemu-2.12.0.mod/migration/exec.c
--- qemu-2.12.0/migration/exec.c 2018-04-24 19:30:47.000000000 +0300
+++ qemu-2.12.0.mod/migration/exec.c 2018-06-25 14:11:33.263965456 +0300
@@ -27,7 +27,7 @@
void exec_start_outgoing_migration(MigrationState *s, const char *command, Error **errp)
{
QIOChannel *ioc;
- const char *argv[] = { "/bin/sh", "-c", command, NULL };
+ const char *argv[] = { "@TERMUX_PREFIX@/bin/sh", "-c", command, NULL };
trace_migration_exec_outgoing(command);
ioc = QIO_CHANNEL(qio_channel_command_new_spawn(argv,
@@ -54,7 +54,7 @@
void exec_start_incoming_migration(const char *command, Error **errp)
{
QIOChannel *ioc;
- const char *argv[] = { "/bin/sh", "-c", command, NULL };
+ const char *argv[] = { "@TERMUX_PREFIX@/bin/sh", "-c", command, NULL };
trace_migration_exec_incoming(command);
ioc = QIO_CHANNEL(qio_channel_command_new_spawn(argv,