On Thu, Oct 11, 2012 at 10:54:05AM +0200, Otto Moerbeek wrote:

> On Thu, Oct 11, 2012 at 10:38:04AM +0200, Bernd wrote:
> 
> > Hi,
> > 
> > I've got to port some shell scripts which rely on env vars. One
> > amongst those is $SSH_CLIENT.
> > 
> > On OpenBSD 5.1 machines, I don't get what I'd assume to get:
> > 
> > # echo $SSH_CLIENT
> > 
> > It returns just a blank line.
> > 
> > I re-tested this on an older development machine, running OpenBSD 4.6:
> > 
> > # echo $SSH_CLIENT
> > 123.45.67.89 34402 22
> > 
> > Is that an intended change in behavior (security related)? I didn't
> > find a changelog entry, neither documentation.
> > 
> > Thanks,
> > 
> > Bernd
> 
> SSH_CONNECTION replaces SSH_CLIENT. See the commit below and
> https://bugzilla.mindrot.org/show_bug.cgi?id=384

Ehh, replace is not the right word. It's still there.

> 
> CVSROOT:        /cvs
> Module name:    src
> Changes by:     stev...@cvs.openbsd.org 2002/09/12 13:50:36
> 
> Modified files:
>         usr.bin/ssh    : session.c ssh.1
> 
> Log message:
> add SSH_CONNECTION and deprecate SSH_CLIENT; bug #384.  ok markus@
> 
>       -Otto

Reply via email to