]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Please repeat after me: setusercontext() modifies _current_ environment, but
authorAndrey A. Chernov <ache@FreeBSD.org>
Sat, 20 Apr 2002 04:38:07 +0000 (04:38 +0000)
committerAndrey A. Chernov <ache@FreeBSD.org>
Sat, 20 Apr 2002 04:38:07 +0000 (04:38 +0000)
commit03df31a6fc71eda2eb20c79a4be677fc84e70e1e
tree288a0a3e264b3c045fc208d45835d1e593ee031f
parent30d7e7ef7dd19f1fd808efa7545f3d4238a19817
Please repeat after me: setusercontext() modifies _current_ environment, but
sshd uses separate child_env. So, to make setusercontext() really does
something, environment must be switched before call and passed to child_env
back after it.

The error here was that modified environment not passed back to child_env,
so all variables that setusercontext() adds are lost, including ones from
~/.login_conf
crypto/openssh/session.c