mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-13 21:30:52 +00:00
It contain some bug fixes and 1 CVE fix. dropbear: Update sysoptions.h.patch dropbear: Update svr-chansession.c.patch dropbear: Update svr-auth.c.patch Update common-session.c.patch dropbear: try to fix path by updating patch dropbear: forgot to remove revision.
45 lines
1.1 KiB
Diff
45 lines
1.1 KiB
Diff
+++ ./src/svr-chansession.c
|
|
@@ -608,7 +608,7 @@
|
|
dropbear_exit("Out of memory"); /* TODO disconnect */
|
|
}
|
|
|
|
- pw = getpwnam(ses.authstate.pw_name);
|
|
+ pw = getpwuid(getuid());
|
|
if (!pw)
|
|
dropbear_exit("getpwnam failed after succeeding previously");
|
|
pty_setowner(pw, chansess->tty);
|
|
@@ -965,6 +965,8 @@
|
|
#endif
|
|
|
|
/* clear environment if -e was not set */
|
|
+ /* termux: do not clear environment on android */
|
|
+#if 0
|
|
/* if we're debugging using valgrind etc, we need to keep the LD_PRELOAD
|
|
* etc. This is hazardous, so should only be used for debugging. */
|
|
if ( !svr_opts.pass_on_env) {
|
|
@@ -979,6 +981,7 @@
|
|
#endif /* HAVE_CLEARENV */
|
|
#endif /* DEBUG_VALGRIND */
|
|
}
|
|
+#endif /* 0 */
|
|
|
|
#if DROPBEAR_SVR_MULTIUSER
|
|
/* We can only change uid/gid as root ... */
|
|
@@ -1006,6 +1009,8 @@
|
|
}
|
|
#endif
|
|
|
|
+ /* termux: do not modify environment since we did not clean it */
|
|
+#if 0
|
|
/* set env vars */
|
|
addnewvar("USER", ses.authstate.pw_name);
|
|
addnewvar("LOGNAME", ses.authstate.pw_name);
|
|
@@ -1016,6 +1021,7 @@
|
|
} else {
|
|
addnewvar("PATH", DEFAULT_PATH);
|
|
}
|
|
+#endif /* 0 */
|
|
if (cp != NULL) {
|
|
addnewvar("LANG", cp);
|
|
m_free(cp);
|