Blame SOURCES/openssh-7.4p1-legacy-ssh-copy-id.patch

8f2528
diff -up openssh-7.4p1/contrib/ssh-copy-id.1.legacy-ssh-copy-id openssh-7.4p1/contrib/ssh-copy-id.1
8f2528
--- openssh-7.4p1/contrib/ssh-copy-id.1.legacy-ssh-copy-id	2016-12-19 05:59:41.000000000 +0100
8f2528
+++ openssh-7.4p1/contrib/ssh-copy-id.1	2017-02-09 09:23:25.366651136 +0100
8f2528
@@ -185,6 +185,19 @@ should prove enlightening (N.B. the mode
8f2528
 .Fl W
8f2528
 option, rather than
8f2528
 .Xr nc 1 ) .
8f2528
+.Sh ENVIRONMENT
8f2528
+.Bl -tag -width Ds
8f2528
+.Pp
8f2528
+.It Pa SSH_COPY_ID_LEGACY
8f2528
+If the 
8f2528
+.Cm SSH_COPY_ID_LEGACY
8f2528
+environment variable is set, the
8f2528
+.Nm
8f2528
+is run in a legacy mode. In this mode, the 
8f2528
+.Nm
8f2528
+doesn't check an existence of a private key and doesn't do remote checks
8f2528
+of the remote server versions or if public keys are already installed.
8f2528
+.El
8f2528
 .Sh "SEE ALSO"
8f2528
 .Xr ssh 1 ,
8f2528
 .Xr ssh-agent 1 ,
8f2528
diff -up openssh-7.4p1/contrib/ssh-copy-id.legacy-ssh-copy-id openssh-7.4p1/contrib/ssh-copy-id
8f2528
--- openssh-7.4p1/contrib/ssh-copy-id.legacy-ssh-copy-id	2017-02-09 09:23:25.366651136 +0100
8f2528
+++ openssh-7.4p1/contrib/ssh-copy-id	2017-02-09 09:33:07.896518169 +0100
8f2528
@@ -99,6 +99,9 @@ if [ -n "$SSH_AUTH_SOCK" ] && ssh-add -L
8f2528
   GET_ID="ssh-add -L"
8f2528
 fi
8f2528
 
8f2528
+# legacy environment variable implies forced copy
8f2528
+[ "x$SSH_COPY_ID_LEGACY" != "x" ] && FORCED=1
8f2528
+
8f2528
 while test "$#" -gt 0
8f2528
 do
8f2528
   [ "${SEEN_OPT_I}" ] && expr "$1" : "[-]i" >/dev/null && {