Blame openssh-6.7p1-ssh-copy-id-truncated-keys.patch
|
Jakub Jelen |
cbda6f |
diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id
|
|
Jakub Jelen |
cbda6f |
index 4bba5d6..ed1208e 100644
|
|
Jakub Jelen |
cbda6f |
--- a/contrib/ssh-copy-id
|
|
Jakub Jelen |
cbda6f |
+++ b/contrib/ssh-copy-id
|
|
Jakub Jelen |
cbda6f |
@@ -207,7 +207,7 @@ populate_new_ids() {
|
|
Jakub Jelen |
cbda6f |
printf '%s: INFO: attempting to log in with the new key(s), to filter out any that are already installed\n' "$0" >&2
|
|
Jakub Jelen |
cbda6f |
NEW_IDS=$(
|
|
Jakub Jelen |
cbda6f |
eval $GET_ID | {
|
|
Jakub Jelen |
cbda6f |
- while read ID ; do
|
|
Jakub Jelen |
cbda6f |
+ while read ID || [[ -n $ID ]]; do
|
|
Jakub Jelen |
cbda6f |
printf '%s\n' "$ID" > $L_TMP_ID_FILE
|
|
Jakub Jelen |
cbda6f |
|
|
Jakub Jelen |
cbda6f |
# the next line assumes $PRIV_ID_FILE only set if using a single id file - this
|