diff options
author | Phil Edwards <pme@sourceware.cygnus.com> | 2000-07-07 13:18:48 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-07-07 07:18:48 -0600 |
commit | 3abaac67a1d89738843ef44495d057228f485ad9 (patch) | |
tree | 542e59af230343af4bbf1e3dd427ab6f9e6b10c7 | |
parent | fba5638f78128bab50123e83e0355bdf07113f92 (diff) | |
download | gcc-3abaac67a1d89738843ef44495d057228f485ad9.tar.gz |
* symlink-tree: Check number of arguments.
From-SVN: r34900
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | symlink-tree | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 65d19ad4c45..b3c3b374c7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-07-07 Phil Edwards <pme@sourceware.cygnus.com> + + * symlink-tree: Check number of arguments. + 2000-07-05 Jim Wilson <wilson@cygnus.com> * Makefile.in (CXX_FOR_TARGET): Add libstdc++ to the library diff --git a/symlink-tree b/symlink-tree index 096582db6eb..8f11c087932 100755 --- a/symlink-tree +++ b/symlink-tree @@ -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 |