mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-28 05:32:35 +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.
29 lines
678 B
Diff
29 lines
678 B
Diff
+++ ./src/common-session.c
|
|
@@ -68,7 +68,7 @@
|
|
/* Sets it to lowdelay */
|
|
update_channel_prio();
|
|
|
|
-#if !DROPBEAR_SVR_MULTIUSER
|
|
+#if 0
|
|
/* A sanity check to prevent an accidental configuration option
|
|
leaving multiuser systems exposed */
|
|
{
|
|
@@ -639,7 +639,7 @@
|
|
const char* get_user_shell() {
|
|
/* an empty shell should be interpreted as "/bin/sh" */
|
|
if (ses.authstate.pw_shell[0] == '\0') {
|
|
- return "/bin/sh";
|
|
+ return "@TERMUX_PREFIX@/bin/sh";
|
|
} else {
|
|
return ses.authstate.pw_shell;
|
|
}
|
|
@@ -655,7 +655,7 @@
|
|
if (ses.authstate.pw_passwd)
|
|
m_free(ses.authstate.pw_passwd);
|
|
|
|
- pw = getpwnam(username);
|
|
+ pw = getpwuid(getuid());
|
|
if (!pw) {
|
|
return;
|
|
}
|