summaryrefslogtreecommitdiff
path: root/debian/patches/ssh-copy-id-status-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/ssh-copy-id-status-check.patch')
-rw-r--r--debian/patches/ssh-copy-id-status-check.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/patches/ssh-copy-id-status-check.patch b/debian/patches/ssh-copy-id-status-check.patch
new file mode 100644
index 000000000..4f7fb4dfb
--- /dev/null
+++ b/debian/patches/ssh-copy-id-status-check.patch
@@ -0,0 +1,13 @@
1Index: b/contrib/ssh-copy-id
2===================================================================
3--- a/contrib/ssh-copy-id
4+++ b/contrib/ssh-copy-id
5@@ -19,7 +19,7 @@
6 shift # and this should leave $1 as the target name
7 fi
8 else
9- if [ x$SSH_AUTH_SOCK != x ] ; then
10+ if [ x$SSH_AUTH_SOCK != x ] && ssh-add -L >/dev/null 2>&1; then
11 GET_ID="$GET_ID ssh-add -L"
12 fi
13 fi