Files
termux-packages/packages/dropbear/svr-chansession.c.patch
termux-pacman-bot 8a80fabd9e bump(main/dropbear): 2025.88
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.
2025-10-15 21:35:14 +00:00

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);