diff options
author | Colin Watson <cjwatson@debian.org> | 2010-02-27 14:05:10 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-02-27 14:05:10 +0000 |
commit | 8dcc7c5ef45cf5032dca7a308ffe17d3935e62d5 (patch) | |
tree | 2e0d8058bdfc24a60a20c5bcbfd1075ef1048ff3 /debian/patches/ssh-copy-id-trailing-colons.patch | |
parent | e44a1fb6e8e59e67e5c8b6e83c0d8566d146aad9 (diff) |
Convert to source format 3.0 (quilt).
Diffstat (limited to 'debian/patches/ssh-copy-id-trailing-colons.patch')
-rw-r--r-- | debian/patches/ssh-copy-id-trailing-colons.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/ssh-copy-id-trailing-colons.patch b/debian/patches/ssh-copy-id-trailing-colons.patch new file mode 100644 index 000000000..624e8d5a7 --- /dev/null +++ b/debian/patches/ssh-copy-id-trailing-colons.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Index: b/contrib/ssh-copy-id | ||
2 | =================================================================== | ||
3 | --- a/contrib/ssh-copy-id | ||
4 | +++ b/contrib/ssh-copy-id | ||
5 | @@ -38,10 +38,10 @@ | ||
6 | exit 1 | ||
7 | fi | ||
8 | |||
9 | -{ eval "$GET_ID" ; } | ssh $1 "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1 | ||
10 | +{ eval "$GET_ID" ; } | ssh ${1%:} "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1 | ||
11 | |||
12 | cat <<EOF | ||
13 | -Now try logging into the machine, with "ssh '$1'", and check in: | ||
14 | +Now try logging into the machine, with "ssh '${1%:}'", and check in: | ||
15 | |||
16 | .ssh/authorized_keys | ||
17 | |||