1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-27 09:48:08 +00:00

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

This commit is contained in:
Greg Alexander 2014-12-16 23:11:23 -05:00
parent f2b458f499
commit f664476da5

View File

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