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

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