]> andersk Git - openssh.git/commitdiff
- (djm) Bug #461: ssh-copy-id fails with no arguments. Patch from
authordjm <djm>
Fri, 3 Jan 2003 03:34:06 +0000 (03:34 +0000)
committerdjm <djm>
Fri, 3 Jan 2003 03:34:06 +0000 (03:34 +0000)
   cjwatson@debian.org

ChangeLog
contrib/ssh-copy-id

index 00d1d7e96bab9c8a2513a01e8e75b8fd4ee0e38b..92f5fc888caf1d0c54066d352120f1ad67ecab27 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.
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
 
This page took 2.1242 seconds and 5 git commands to generate.