termux-packages/packages/mc/filemanager_usermenu.c.patch

22 lines
831 B
Diff
Raw Normal View History

2016-03-15 02:06:35 +01:00
diff -u -r ../mc-4.8.16/src/filemanager/usermenu.c ./src/filemanager/usermenu.c
--- ../mc-4.8.16/src/filemanager/usermenu.c 2016-03-12 10:45:48.000000000 -0500
+++ ./src/filemanager/usermenu.c 2016-03-14 20:34:12.523712672 -0400
@@ -448,7 +448,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++)
@@ -554,7 +554,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)
{
if (system (cmd) == -1)