From e1b19de52ae85aa66f5332c01b9858f676a8d377 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 5 Jan 2016 12:39:40 +0100 Subject: [PATCH] Fix wrong handling of LEGACY environment variable --- openssh-7.1p1-ssh-copy-id.patch | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/openssh-7.1p1-ssh-copy-id.patch b/openssh-7.1p1-ssh-copy-id.patch index a749357..a4e6f7d 100644 --- a/openssh-7.1p1-ssh-copy-id.patch +++ b/openssh-7.1p1-ssh-copy-id.patch @@ -494,15 +494,15 @@ diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id index afde8b1..cd52764 100644 --- a/contrib/ssh-copy-id +++ b/contrib/ssh-copy-id -@@ -170,6 +170,8 @@ do - usage - ;; - esac -+ -+ [ "x$SSH_COPY_ID_LEGACY" != "x" ] && FORCED=1 - done +@@ -99,6 +99,8 @@ if [ -n "$SSH_AUTH_SOCK" ] && ssh-add -L >/dev/null 2>&1 ; then + GET_ID="ssh-add -L" + fi - eval set -- "$SAVEARGS" ++[ "x$SSH_COPY_ID_LEGACY" != "x" ] && FORCED=1 ++ + while test "$#" -gt 0 + do + [ "${SEEN_OPT_I}" ] && expr "$1" : "[-]i" >/dev/null && { diff --git a/contrib/ssh-copy-id.1 b/contrib/ssh-copy-id.1 index 8850cce..62f112d 100644 --- a/contrib/ssh-copy-id.1