]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- (djm) Bug #461: ssh-copy-id fails with no arguments. Patch from
authorDamien Miller <djm@mindrot.org>
Fri, 3 Jan 2003 03:34:06 +0000 (14:34 +1100)
committerDamien Miller <djm@mindrot.org>
Fri, 3 Jan 2003 03:34:06 +0000 (14:34 +1100)
   cjwatson@debian.org

ChangeLog
contrib/ssh-copy-id

index 84adce11a64c064dc3806f891a90c1f4e8a44f32..9c85c7993fdabb3d8e633dcae748d13b8f4df93a 100644 (file)
--- 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.
      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 $
index 2346761f7af0e6ed84922fe921d596a1b5f1aae5..a1ad34a8d421a817175e7588003ef2cd51399ff3 100644 (file)
@@ -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