Update system paths to system binaries
This commit is contained in:
parent
c409b567ca
commit
828e6c5ec7
@ -6,7 +6,7 @@ diff -u -r ../mc-4.8.12/src/filemanager/ext.c ./src/filemanager/ext.c
|
|||||||
|
|
||||||
cmd_file = fdopen (cmd_file_fd, "w");
|
cmd_file = fdopen (cmd_file_fd, "w");
|
||||||
- fputs ("#! /bin/sh\n\n", cmd_file);
|
- fputs ("#! /bin/sh\n\n", cmd_file);
|
||||||
+ fputs ("#! /system/bin/sh\n\n", cmd_file);
|
+ fputs ("#! @TERMUX_PREFIX@/bin/sh\n\n", cmd_file);
|
||||||
|
|
||||||
export_variables = exec_get_export_variables (filename_vpath);
|
export_variables = exec_get_export_variables (filename_vpath);
|
||||||
if (export_variables != NULL)
|
if (export_variables != NULL)
|
||||||
@ -15,7 +15,7 @@ diff -u -r ../mc-4.8.12/src/filemanager/ext.c ./src/filemanager/ext.c
|
|||||||
*/
|
*/
|
||||||
if (!run_view)
|
if (!run_view)
|
||||||
- fprintf (cmd_file, "\n/bin/rm -f %s\n", vfs_path_as_str (script_vpath));
|
- fprintf (cmd_file, "\n/bin/rm -f %s\n", vfs_path_as_str (script_vpath));
|
||||||
+ fprintf (cmd_file, "\n/system/bin/rm -f %s\n", vfs_path_as_str (script_vpath));
|
+ fprintf (cmd_file, "\n@TERMUX_PREFIX@/bin/applets/rm -f %s\n", vfs_path_as_str (script_vpath));
|
||||||
|
|
||||||
fclose (cmd_file);
|
fclose (cmd_file);
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ diff -u -r ../mc-4.8.12/src/filemanager/ext.c ./src/filemanager/ext.c
|
|||||||
mc_chmod (script_vpath, S_IRWXU);
|
mc_chmod (script_vpath, S_IRWXU);
|
||||||
/* ... but don't rely on it - run /bin/sh explicitly */
|
/* ... but don't rely on it - run /bin/sh explicitly */
|
||||||
- cmd = g_strconcat ("/bin/sh ", vfs_path_as_str (script_vpath), (char *) NULL);
|
- cmd = g_strconcat ("/bin/sh ", vfs_path_as_str (script_vpath), (char *) NULL);
|
||||||
+ cmd = g_strconcat ("/system/bin/sh ", vfs_path_as_str (script_vpath), (char *) NULL);
|
+ cmd = g_strconcat ("@TERMUX_PREFIX@/bin/sh ", vfs_path_as_str (script_vpath), (char *) NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (run_view)
|
if (run_view)
|
||||||
|
@ -6,7 +6,7 @@ diff -u -r ../mc-4.8.12/src/main.c ./src/main.c
|
|||||||
{
|
{
|
||||||
g_free (mc_global.tty.shell);
|
g_free (mc_global.tty.shell);
|
||||||
- mc_global.tty.shell = g_strdup ("/bin/sh");
|
- mc_global.tty.shell = g_strdup ("/bin/sh");
|
||||||
+ mc_global.tty.shell = g_strdup ("/system/bin/sh");
|
+ mc_global.tty.shell = g_strdup ("@TERMUX_PREFIX@/bin/sh");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is the directory, where MC was installed, on Unix this is DATADIR */
|
/* This is the directory, where MC was installed, on Unix this is DATADIR */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user