htop: Update from 2.1.0 to 2.2.0
[termux-packages] / packages / mc / filemanager_ext.c.patch
CommitLineData
59f0d218
FF
1diff -u -r ../mc-4.8.12/src/filemanager/ext.c ./src/filemanager/ext.c
2--- ../mc-4.8.12/src/filemanager/ext.c 2014-04-01 12:54:01.000000000 +0200
3+++ ./src/filemanager/ext.c 2014-06-05 16:26:24.821998594 +0200
4@@ -454,7 +454,7 @@
5 }
6
7 cmd_file = fdopen (cmd_file_fd, "w");
8- fputs ("#! /bin/sh\n\n", cmd_file);
828e6c5e 9+ fputs ("#! @TERMUX_PREFIX@/bin/sh\n\n", cmd_file);
59f0d218
FF
10
11 export_variables = exec_get_export_variables (filename_vpath);
12 if (export_variables != NULL)
13@@ -472,7 +472,7 @@
14 * so we clean up after calling view().
15 */
16 if (!run_view)
17- fprintf (cmd_file, "\n/bin/rm -f %s\n", vfs_path_as_str (script_vpath));
828e6c5e 18+ fprintf (cmd_file, "\n@TERMUX_PREFIX@/bin/applets/rm -f %s\n", vfs_path_as_str (script_vpath));
59f0d218
FF
19
20 fclose (cmd_file);
21
22@@ -486,7 +486,7 @@
23 /* Set executable flag on the command file ... */
24 mc_chmod (script_vpath, S_IRWXU);
25 /* ... but don't rely on it - run /bin/sh explicitly */
26- cmd = g_strconcat ("/bin/sh ", vfs_path_as_str (script_vpath), (char *) NULL);
828e6c5e 27+ cmd = g_strconcat ("@TERMUX_PREFIX@/bin/sh ", vfs_path_as_str (script_vpath), (char *) NULL);
59f0d218
FF
28 }
29
30 if (run_view)