* symlink-tree: Check number of arguments.
authorJeff Law <law@redhat.com>
Fri, 7 Jul 2000 13:21:39 +0000 (13:21 +0000)
committerJeff Law <law@redhat.com>
Fri, 7 Jul 2000 13:21:39 +0000 (13:21 +0000)
ChangeLog
symlink-tree

index 37a1b78..054e792 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-07-07 Phil Edwards  <pme@sourceware.cygnus.com>
+
+       * symlink-tree:  Check number of arguments.
+
 Thu Jul  6 15:36:55 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * texinfo/texinfo.tex: Update to version 2000-05-28.15.
index 096582d..8f11c08 100755 (executable)
@@ -10,6 +10,11 @@ prog=$0
 srcdir=$1
 ignore="$2"
 
+if test $# -lt 1; then
+  echo "symlink-tree error:  Usage: symlink-tree srcdir \"ignore1 ignore2 ...\""
+  exit 1
+fi
+
 ignore_additional=". .. CVS"
 
 # If we were invoked with a relative path name, adjust ${prog} to work