From owner-freebsd-bugs Thu Jun 27 6:30:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id EC3E537B406 for ; Thu, 27 Jun 2002 06:30:01 -0700 (PDT) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g5RDU1JU041219 for ; Thu, 27 Jun 2002 06:30:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g5RDU1wm041218; Thu, 27 Jun 2002 06:30:01 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id 9FF0437B400 for ; Thu, 27 Jun 2002 06:23:28 -0700 (PDT) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g5RDNSOT095779 for ; Thu, 27 Jun 2002 06:23:28 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g5RDNS2P095778; Thu, 27 Jun 2002 06:23:28 -0700 (PDT) Message-Id: <200206271323.g5RDNS2P095778@www.freebsd.org> Date: Thu, 27 Jun 2002 06:23:28 -0700 (PDT) From: Clemens Wittinger To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/39923: openssh-portable 3.4 - path defined in login.conf is ignored Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 39923 >Category: misc >Synopsis: openssh-portable 3.4 - path defined in login.conf is ignored >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 27 06:30:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Clemens Wittinger >Release: 4.5-RELEASE >Organization: >Environment: FreeBSD host 4.5-RELEASE-p7 FreeBSD 4.5-RELEASE-p7 #6: Thu Jun 27 13:35:17 CEST 2002 root@host:/var/obj/usr/src/sys/FS-GENERIC i386 >Description: sshd does not set the path according to login.conf, in fact the path out of sshd's environment is used. >How-To-Repeat: login. compare path defined in login.conf with PATH >Fix: --- session.c Thu Jun 27 15:08:09 2002 +++ /usr/ports/security/openssh-portable/work/openssh-3.4p1/session.c Thu Jun 27 15:07:42 2002 @@ -1120,7 +1120,6 @@ copy_environment(environ, &env, &envsize); xfree(environ); environ = senv; - child_set_env(&env, &envsize, "PATH", getenv("PATH")); var= login_getcapstr(lc, "lang", NULL, NULL); if ( var ) child_set_env(&env, &envsize, "LANG", var); var= login_getcapstr(lc, "charset", NULL, NULL); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message