From owner-cvs-all Fri Apr 19 21:38:11 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BBFC937B405; Fri, 19 Apr 2002 21:38:08 -0700 (PDT) Received: (from ache@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3K4c8B46617; Fri, 19 Apr 2002 21:38:08 -0700 (PDT) (envelope-from ache) Message-Id: <200204200438.g3K4c8B46617@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Fri, 19 Apr 2002 21:38:08 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/crypto/openssh session.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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