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

22 lines
803 B
Diff
Raw Normal View History

2021-08-17 23:24:51 +02:00
diff -uNr mc-4.8.27/src/usermenu.c mc-4.8.27.mod/src/usermenu.c
--- mc-4.8.27/src/usermenu.c 2021-08-01 19:45:58.000000000 +0300
+++ mc-4.8.27.mod/src/usermenu.c 2021-08-18 00:18:39.918253182 +0300
2018-06-04 00:57:46 +02:00
@@ -450,7 +450,7 @@
2015-06-13 01:03:31 +02:00
}
2018-06-04 00:57:46 +02:00
2015-06-13 01:03:31 +02:00
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++)
2021-08-17 23:24:51 +02:00
@@ -546,7 +546,7 @@
mc_chmod (file_name_vpath, S_IRWXU);
2016-03-15 02:06:35 +01:00
2021-08-17 23:24:51 +02:00
/* Execute the command indirectly to allow execution even on no-exec filesystems. */
- 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);
2018-06-04 00:57:46 +02:00
2021-08-17 23:24:51 +02:00
if (run_view)
{