Date: Fri, 19 Nov 1999 01:57:44 -0500 From: Sean Kelly <smkelly@slashnet.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/14992: OpenSSH Path problem Message-ID: <E11ohzM-0007yO-00@area51.slashnet.org>
next in thread | raw e-mail | index | archive | help
>Number: 14992 >Category: ports >Synopsis: Path problem in OpenSSH prevents scp from working >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 18 23:00:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Sean Kelly >Release: FreeBSD 3.3-STABLE i386 >Organization: SlashNET/OSOnline.org >Environment: OpenSSH from /usr/ports/security/openssh Fri Nov 19 00:54:07 CST 1999 >Description: In sshd.c: child_set_env(&env, &envsize, "PATH", _PATH_STDPATH "/usr/local/bin" "/usr/local/bin"); That code gives a PATH like this: _PATH_STDPATH/usr/local/bin/usr/local/bin The code should look something like this: child_set_env(&env, &envsize, "PATH", _PATH_STDPATH ":/usr/local/bin:/usr/local/sbin"); This bug causes both scp and user logins to fail (assuming no login script modifies the user's environment for them). >How-To-Repeat: Install OpenSSH, try to scp a file from/to the machine. >Fix: The code should look something like this: child_set_env(&env, &envsize, "PATH", _PATH_STDPATH ":/usr/local/bin:/usr/local/sbin"); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E11ohzM-0007yO-00>