From owner-freebsd-hackers Tue Jan 30 7:48:15 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from po.cwru.edu (po.CWRU.Edu [129.22.4.2]) by hub.freebsd.org (Postfix) with ESMTP id AF8DE37B699 for ; Tue, 30 Jan 2001 07:47:54 -0800 (PST) Received: from nike.INS.CWRU.Edu (nike.INS.CWRU.Edu [129.22.8.219]) by po.cwru.edu with SMTP (8.8.8+cwru/CWRU-3.6) id KAA05155; Tue, 30 Jan 2001 10:47:48 -0500 (EST) (from chet@nike.INS.CWRU.Edu) Date: Tue, 30 Jan 2001 10:46:26 -0500 From: Chet Ramey To: patrick@netzuno.com Subject: RE: Bash2 removes SSH_CLIENT from the environment Cc: chet@po.CWRU.Edu, roam@orbitel.bg, freebsd-hackers@freebsd.org Reply-To: chet@po.CWRU.Edu Message-ID: <1010130154626.AA70376.SM@nike.INS.CWRU.Edu> Read-Receipt-To: chet@po.CWRU.Edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-In-Reply-To: Message from patrick@netzuno.com of Tue, 30 Jan 2001 10:42:18 -0500 (id ) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > The tradeoff bash makes is to remove the export attribute from SSH_CLIENT > > if it exists in the shell's initial environment. Users may always export > > it explicitly. > > This is what I figured from reading the code, however not exporting > SSH_CLIENT is not enough to really achieve this goal: bash looks for either > SSH_CLIENT or SSH2_CLIENT to determine if it should run the startup scripts, This was an oversight that will be fixed in bash-2.05. > but only SSH_CLIENT is cleared. > > Also the content of SSH_CLIENT may be of intereset (namely the remote IP) > and I don't know how to retrieve that information after SSH_CLIENT has been > clobbered. What do you mean? The variable is still there, it's just not exported. If you want to export it, do so. > (note the discussion is only on freebsd-hackers from now on) I don't think I'm on freebsd-hackers. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ( ``Discere est Dolere'' -- chet) Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message