termux-packages/x11-packages/qemu-system/qemu-2.12.0_block_cloop.c.p...

13 lines
567 B
Diff

diff -uNr qemu-2.12.0/block/cloop.c qemu-2.12.0.mod/block/cloop.c
--- qemu-2.12.0/block/cloop.c 2018-04-24 19:30:46.000000000 +0300
+++ qemu-2.12.0.mod/block/cloop.c 2018-06-25 14:11:33.203965453 +0300
@@ -47,7 +47,7 @@
static int cloop_probe(const uint8_t *buf, int buf_size, const char *filename)
{
- const char *magic_version_2_0 = "#!/bin/sh\n"
+ const char *magic_version_2_0 = "#!@TERMUX_PREFIX@/bin/sh\n"
"#V2.0 Format\n"
"modprobe cloop file=$0 && mount -r -t iso9660 /dev/cloop $1\n";
int length = strlen(magic_version_2_0);