1 diff -uNr dropbear-2018.76/svr-chansession.c dropbear-2018.76.mod/svr-chansession.c
2 --- dropbear-2018.76/svr-chansession.c 2018-02-27 16:25:12.000000000 +0200
3 +++ dropbear-2018.76.mod/svr-chansession.c 2018-04-21 13:45:06.707063974 +0300
7 /* clear environment */
8 + /* termux: do not clear environment on android */
10 /* if we're debugging using valgrind etc, we need to keep the LD_PRELOAD
11 * etc. This is hazardous, so should only be used for debugging. */
12 #ifndef DEBUG_VALGRIND
15 #endif /* HAVE_CLEARENV */
16 #endif /* DEBUG_VALGRIND */
17 +#endif /* __ANDROID__ */
19 /* We can only change uid/gid as root ... */
25 + /* termux: do not modify environment since we did not clean it */
28 addnewvar("USER", ses.authstate.pw_name);
29 addnewvar("LOGNAME", ses.authstate.pw_name);
30 addnewvar("HOME", ses.authstate.pw_dir);
31 addnewvar("SHELL", get_user_shell());
32 - addnewvar("PATH", DEFAULT_PATH);
33 +#endif /* __ANDROID__ */
34 if (chansess->term != NULL) {
35 addnewvar("TERM", chansess->term);