Bugzilla – Attachment 1909 Details for
Bug 1530
ssh-copy-id: strip colon from end of hostname
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
openssh-ssh-copy-id.patch
openssh-ssh-copy-id.patch (text/plain), 831 bytes, created by
Darren Tucker
on 2010-08-03 16:21:15 AEST
(
hide
)
Description:
openssh-ssh-copy-id.patch
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2010-08-03 16:21:15 AEST
Size:
831 bytes
patch
obsolete
>Index: ssh-copy-id >=================================================================== >RCS file: /var/cvs/openssh/contrib/ssh-copy-id,v >retrieving revision 1.9 >diff -u -p -r1.9 ssh-copy-id >--- ssh-copy-id 18 Jun 2010 01:09:26 -0000 1.9 >+++ ssh-copy-id 3 Aug 2010 06:20:23 -0000 >@@ -38,10 +38,13 @@ if [ "$#" -lt 1 ] || [ "$1" = "-h" ] || > exit 1 > fi > >-{ eval "$GET_ID" ; } | ssh $1 "umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys" || exit 1 >+# strip any trailing colon >+host=`echo $1 | sed 's/:$//'` >+ >+{ eval "$GET_ID" ; } | ssh $host "umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys" || exit 1 > > cat <<EOF >-Now try logging into the machine, with "ssh '$1'", and check in: >+Now try logging into the machine, with "ssh '$host'", and check in: > > ~/.ssh/authorized_keys >
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 Raw
Flags:
djm
:
ok+
Actions:
View
Attachments on
bug 1530
:
1573
| 1909