summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-01-03 14:34:06 +1100
committerDamien Miller <djm@mindrot.org>2003-01-03 14:34:06 +1100
commit8aff5cbed75279094e2cf701d6eed38dbe4275b8 (patch)
tree9ad4488e165b7175b4194ea30f953948aff34159
parent678ee51ff3493f0185dcb23bfb9fb2ba299d89b1 (diff)
- (djm) Bug #461: ssh-copy-id fails with no arguments. Patch from
cjwatson@debian.org
-rw-r--r--ChangeLog6
-rw-r--r--contrib/ssh-copy-id7
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 84adce11..9c85c799 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20030103
+ - (djm) Bug #461: ssh-copy-id fails with no arguments. Patch from
+ cjwatson@debian.org
+
20030101
- (stevesk) [session.c sshlogin.c sshlogin.h] complete portable
parts of pass addrlen with sockaddr * fix.
@@ -917,4 +921,4 @@
save auth method before monitor_reset_key_state(); bugzilla bug #284;
ok provos@
-$Id: ChangeLog,v 1.2537 2003/01/01 23:43:55 stevesk Exp $
+$Id: ChangeLog,v 1.2538 2003/01/03 03:34:06 djm Exp $
diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id
index 2346761f..a1ad34a8 100644
--- a/contrib/ssh-copy-id
+++ b/contrib/ssh-copy-id
@@ -29,7 +29,12 @@ if [ -z "`eval $GET_ID`" -a -r "${ID_FILE}" ] ; then
fi
if [ -z "`eval $GET_ID`" ]; then
- echo "$0: ERROR: No identities found"
+ echo "$0: ERROR: No identities found" >&2
+ exit 1
+fi
+
+if [ "$#" -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
+ echo "Usage: $0 [-i [identity_file]] [user@]machine" >&2
exit 1
fi