1 diff -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
7 cmd_file = fdopen (cmd_file_fd, "w");
8 - fputs ("#! /bin/sh\n\n", cmd_file);
9 + fputs ("#! @TERMUX_PREFIX@/bin/sh\n\n", cmd_file);
11 export_variables = exec_get_export_variables (filename_vpath);
12 if (export_variables != NULL)
14 * so we clean up after calling view().
17 - fprintf (cmd_file, "\n/bin/rm -f %s\n", vfs_path_as_str (script_vpath));
18 + fprintf (cmd_file, "\n@TERMUX_PREFIX@/bin/applets/rm -f %s\n", vfs_path_as_str (script_vpath));
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);
27 + cmd = g_strconcat ("@TERMUX_PREFIX@/bin/sh ", vfs_path_as_str (script_vpath), (char *) NULL);