termux-packages/packages/mc/src-usermenu.c.patch

22 lines
769 B
Diff

diff -u -r ../mc-4.8.21/src/usermenu.c ./src/usermenu.c
--- ../mc-4.8.21/src/usermenu.c 2018-05-27 19:56:21.000000000 +0000
+++ ./src/usermenu.c 2018-06-03 22:55:09.086449615 +0000
@@ -450,7 +450,7 @@
}
cmd_file = fdopen (cmd_file_fd, "w");
- fputs ("#! /bin/sh\n", cmd_file);
+ fputs ("#! @TERMUX_PREFIX@/bin/sh\n", cmd_file);
commands++;
for (col = 0; *commands != '\0'; commands++)
@@ -555,7 +555,7 @@
* on no-exec filesystems. */
char *cmd;
- cmd = g_strconcat ("/bin/sh ", vfs_path_as_str (file_name_vpath), (char *) NULL);
+ cmd = g_strconcat ("@TERMUX_PREFIX@/bin/sh ", vfs_path_as_str (file_name_vpath), (char *) NULL);
if (show_prompt)
shell_execute (cmd, EXECUTE_HIDE);