don't attempt to change uid, we do not run as root

sigsegv_dump
Greg Alexander 10 years ago
parent f2b458f499
commit f664476da5

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

Loading…
Cancel
Save