|
|
@ -923,6 +923,7 @@ static void execchild(void *user_data) {
|
|
|
|
#endif /* HAVE_CLEARENV */
|
|
|
|
#endif /* HAVE_CLEARENV */
|
|
|
|
#endif /* DEBUG_VALGRIND */
|
|
|
|
#endif /* DEBUG_VALGRIND */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
/* We can only change uid/gid as root ... */
|
|
|
|
/* We can only change uid/gid as root ... */
|
|
|
|
if (getuid() == 0) {
|
|
|
|
if (getuid() == 0) {
|
|
|
|
|
|
|
|
|
|
|
@ -946,6 +947,7 @@ static void execchild(void *user_data) {
|
|
|
|
dropbear_exit("Couldn't change user as non-root");
|
|
|
|
dropbear_exit("Couldn't change user as non-root");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* 0 */
|
|
|
|
|
|
|
|
|
|
|
|
/* set env vars */
|
|
|
|
/* set env vars */
|
|
|
|
addnewvar("USER", ses.authstate.pw_name);
|
|
|
|
addnewvar("USER", ses.authstate.pw_name);
|
|
|
|