Bugzilla – Attachment 2548 Details for
Bug 2350
ssh-copy-id doesn't handle keys with missing trailing newline
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
ssh-copy-id.patch (text/plain), 854 bytes, created by
Jakub Jelen
on 2015-02-12 21:17:08 AEDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2015-02-12 21:17:08 AEDT
Size:
854 bytes
patch
obsolete
>From ef2ba83379f24e2cd2c6474d415cb725c96443d9 Mon Sep 17 00:00:00 2001 >From: Jakub Jelen <jjelen@redhat.com> >Date: Thu, 12 Feb 2015 11:13:44 +0100 >Subject: [PATCH] ssh-copy-id should deal with files without trailing newline > >--- > contrib/ssh-copy-id | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id >index ae88e99..e130465 100644 >--- a/contrib/ssh-copy-id >+++ b/contrib/ssh-copy-id >@@ -207,7 +207,7 @@ populate_new_ids() { > printf '%s: INFO: attempting to log in with the new key(s), to filter out any that are already installed\n' "$0" >&2 > NEW_IDS=$( > eval $GET_ID | { >- while read ID ; do >+ while read ID || [[ -n $ID ]]; do > printf '%s\n' "$ID" > $L_TMP_ID_FILE > > # the next line assumes $PRIV_ID_FILE only set if using a single id file - this >-- >2.1.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2350
: 2548