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:
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…
Reference in New Issue
Block a user