termux-packages/packages/loksh/no-cs_path.patch
Leonid Pliushch 0d1920a061 move some packages from unstable repository
New packages that will be added:

 * antiword
 * beanshell
 * cabextract
 * deutex
 * direnv
 * exiv2
 * git-lfs
 * gitea
 * hoedown
 * httrack
 * iverilog
 * links
 * loksh
 * mksh
 * mktorrent
 * pdfgrep
 * shellharden
 * swig
 * tidy
 * tweego
 * wordgrinder
2019-05-11 18:36:47 +03:00

30 lines
754 B
Diff

diff -uNr loksh-6.3/main.c loksh-6.3.mod/main.c
--- loksh-6.3/main.c 2018-04-14 12:35:14.000000000 +0300
+++ loksh-6.3.mod/main.c 2019-01-29 15:29:47.035733470 +0200
@@ -188,16 +188,6 @@
init_histvec();
def_path = _PATH_DEFPATH;
- {
- size_t len = confstr(_CS_PATH, NULL, 0);
- char *new;
-
- if (len > 0) {
- confstr(_CS_PATH, new = alloc(len + 1, APERM), len + 1);
- def_path = new;
- }
- }
-
/* Set PATH to def_path (will set the path global variable).
* (import of environment below will probably change this setting).
*/
@@ -389,7 +379,7 @@
}
if (Flag(FPRIVILEGED))
- include("/etc/suid_profile", 0, NULL, 1);
+ include("@TERMUX_PREFIX@/etc/suid_profile", 0, NULL, 1);
else if (Flag(FTALKING)) {
char *env_file;