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

22 lines
783 B
Diff
Raw Normal View History

2017-11-26 23:15:39 +01:00
diff -u -r ../mc-4.8.20/src/usermenu.c ./src/usermenu.c
--- ../mc-4.8.20/src/usermenu.c 2017-11-18 18:45:59.000000000 +0100
+++ ./src/usermenu.c 2017-11-26 23:06:56.100910498 +0100
@@ -449,7 +449,7 @@
2015-06-13 01:03:31 +02:00
return;
}
cmd_file = fdopen (cmd_file_fd, "w");
- fputs ("#! /bin/sh\n", cmd_file);
2015-12-02 11:58:47 +01:00
+ fputs ("#! @TERMUX_PREFIX@/bin/sh\n", cmd_file);
2015-06-13 01:03:31 +02:00
commands++;
2016-03-15 02:06:35 +01:00
for (col = 0; *commands != '\0'; commands++)
2017-11-26 23:15:39 +01:00
@@ -555,7 +555,7 @@
2016-03-15 02:06:35 +01:00
* 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)
{
if (system (cmd) == -1)