termux-packages/packages/dash/etc-profile.patch

14 lines
349 B
Diff

diff --git a/src/main.c b/src/main.c
index fcd3e7d..39b6e70 100644
--- a/src/main.c
+++ b/src/main.c
@@ -146,7 +146,7 @@ main(int argc, char **argv)
login = procargs(argc, argv);
if (login) {
state = 1;
- read_profile("/etc/profile");
+ read_profile("@TERMUX_PREFIX@/etc/profile");
state1:
state = 2;
read_profile("$HOME/.profile");