diff options
author | Damien Miller <djm@mindrot.org> | 2010-03-26 11:18:27 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2010-03-26 11:18:27 +1100 |
commit | df08341060fe956ec07514c75b93e7140d2ebda0 (patch) | |
tree | 9fdc88d5c5cfee7b281a267bf4e84e2e19b9ff94 | |
parent | ffd1eaadb0b97c1f172ed0ec9eda51fd368617ae (diff) |
- (djm) [contrib/ssh-copy-id] Don't blow up when the agent has no keys;
bz#1723 patch from Adeodato Simó via Colin Watson; ok dtucker@
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | contrib/ssh-copy-id | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -15,6 +15,8 @@ | |||
15 | ok dtucker@ | 15 | ok dtucker@ |
16 | - (dtucker) Bug #1725: explicitly link libX11 into gnome-ssh-askpass2 using | 16 | - (dtucker) Bug #1725: explicitly link libX11 into gnome-ssh-askpass2 using |
17 | pkg-config, patch from Colin Watson. Needed for newer linkers (ie gold). | 17 | pkg-config, patch from Colin Watson. Needed for newer linkers (ie gold). |
18 | - (djm) [contrib/ssh-copy-id] Don't blow up when the agent has no keys; | ||
19 | bz#1723 patch from Adeodato Simóvia Colin Watson; ok dtucker@ | ||
18 | 20 | ||
19 | 20100324 | 21 | 20100324 |
20 | - (dtucker) [contrib/cygwin/ssh-host-config] Mount the Windows directory | 22 | - (dtucker) [contrib/cygwin/ssh-host-config] Mount the Windows directory |
diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id index df74d25c8..65c0a8cd8 100644 --- a/contrib/ssh-copy-id +++ b/contrib/ssh-copy-id | |||
@@ -19,7 +19,7 @@ if [ "-i" = "$1" ]; then | |||
19 | shift # and this should leave $1 as the target name | 19 | shift # and this should leave $1 as the target name |
20 | fi | 20 | fi |
21 | else | 21 | else |
22 | if [ x$SSH_AUTH_SOCK != x ] ; then | 22 | if [ x$SSH_AUTH_SOCK != x ] && ssh-add -L >/dev/null 2>&1; then |
23 | GET_ID="$GET_ID ssh-add -L" | 23 | GET_ID="$GET_ID ssh-add -L" |
24 | fi | 24 | fi |
25 | fi | 25 | fi |