mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-06 02:26:34 +00:00
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 */
|
|
{
|
|
@@ -625,7 +625,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;
|
|
}
|
|
@@ -641,7 +641,7 @@
|
|
if (ses.authstate.pw_passwd)
|
|
m_free(ses.authstate.pw_passwd);
|
|
|
|
- pw = getpwnam(username);
|
|
+ pw = getpwuid(getuid());
|
|
if (!pw) {
|
|
return;
|
|
}
|