Date: Fri, 19 Apr 2002 21:38:08 -0700 (PDT) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/crypto/openssh session.c Message-ID: <200204200438.g3K4c8B46617@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
ache 2002/04/19 21:38:08 PDT
Modified files:
crypto/openssh session.c
Log:
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
Revision Changes Path
1.23 +58 -24 src/crypto/openssh/session.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204200438.g3K4c8B46617>
