Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2002 06:23:28 -0700 (PDT)
From:      Clemens Wittinger <cwr@atsec.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/39923: openssh-portable 3.4 - path defined in login.conf is ignored
Message-ID:  <200206271323.g5RDNS2P095778@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206271323.g5RDNS2P095778>