* ltconfig: Shell portability fix for the tagname validity check.

From-SVN: r39299
This commit is contained in:
Michael Sokolov 2001-01-27 19:48:46 +00:00 committed by Michael Sokolov
parent 65422ec58b
commit 92769744ae
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-01-27 Michael Sokolov <msokolov@ivan.Harhan.ORG>, Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* ltconfig: Shell portability fix for the tagname validity check.
2001-01-27 Alexandre Oliva <aoliva@redhat.com> 2001-01-27 Alexandre Oliva <aoliva@redhat.com>
* ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types. * ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types.

View File

@ -422,8 +422,10 @@ fi
if test -n "$tagname"; then if test -n "$tagname"; then
# Check whether tagname contains only valid characters # Check whether tagname contains only valid characters
case "$tagname" in case `$echo "X$tagname" |
*[!-_A-Za-z0-9,/]*) $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in
"") ;;
*)
echo "$progname: invalid tag name: $tagname" 1>&2 echo "$progname: invalid tag name: $tagname" 1>&2
exit 1 exit 1
;; ;;