aboutsummaryrefslogtreecommitdiffstats
path: root/security/safesh/src
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>2002-01-31 02:20:17 +0800
committereivind <eivind@FreeBSD.org>2002-01-31 02:20:17 +0800
commitd8c617125e0f36b2ee9c7c8b7b2b104980bbf09b (patch)
tree5320744cc0ba57f658dcb149d89d360630f8b886 /security/safesh/src
parent4b33eb7c80ae6ea81a9d57b7b67621091f325088 (diff)
downloadfreebsd-ports-graphics-d8c617125e0f36b2ee9c7c8b7b2b104980bbf09b.tar.gz
freebsd-ports-graphics-d8c617125e0f36b2ee9c7c8b7b2b104980bbf09b.tar.zst
freebsd-ports-graphics-d8c617125e0f36b2ee9c7c8b7b2b104980bbf09b.zip
Update to 1.2: Single line bugfix.
I hope I got it right *this* time, at least.
Diffstat (limited to 'security/safesh/src')
-rw-r--r--security/safesh/src/safesh.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/safesh/src/safesh.sh b/security/safesh/src/safesh.sh
index bd741796451..8db88109d12 100644
--- a/security/safesh/src/safesh.sh
+++ b/security/safesh/src/safesh.sh
@@ -68,7 +68,7 @@ fi
for i in $USER@${HOST}-22 `cat $HOSTDIR/extra_keys 2> /dev/null`; do
tmpuser=`echo $i | sed -e "/^[^@]*\$/s/.*/$USER/" -e "/@/s/\\(.*\\)@.*/\\1/"`
tmpport=`echo $i | sed -e '/-\([0-9][0-9]*\)/!s/$/-22/' -e 's/.*-\([0-9][0-9]*\)/\1/'`
- tmphost=`echo $1 | sed -e 's/.*@\(.*\)//' -e 's/-[0-9][0-9]*$//' | tr A-Z a-z`
+ tmphost=`echo $i | sed -e 's/.*@\(.*\)/\1/' -e 's/-[0-9][0-9]*$//' | tr A-Z a-z`
tmp=$USER@`normalizehost $tmphost`-$tmpport
if [ -f $HOSTDIR/$tmp ]; then
IDENTITY=$HOSTDIR/$tmp