termux-packages/x11-packages/qemu-system-x86_64/qemu-3.0.0_block_cloop.c.patch

13 lines
563 B
Diff
Raw Normal View History

2018-10-26 15:19:03 +02:00
diff -uNr qemu-3.0.0/block/cloop.c qemu-3.0.0.mod/block/cloop.c
--- qemu-3.0.0/block/cloop.c 2018-08-14 22:10:34.000000000 +0300
2018-10-26 16:21:47 +02:00
+++ qemu-3.0.0.mod/block/cloop.c 2018-10-26 16:49:45.243598314 +0300
2018-09-17 13:27:14 +02:00
@@ -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);