diff options
author | msokolov <msokolov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-27 19:48:46 +0000 |
---|---|---|
committer | msokolov <msokolov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-27 19:48:46 +0000 |
commit | 441075de52963b5454ea6f845b2865e43bf17632 (patch) | |
tree | 8fd1e43c0dba4576700fd7c422ec4ecb21474b03 /ltconfig | |
parent | 4ec5c5e8b9e7cb340f30a6b55dc9cead72a2ae95 (diff) | |
download | gcc-441075de52963b5454ea6f845b2865e43bf17632.tar.gz |
* ltconfig: Shell portability fix for the tagname validity check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39299 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ltconfig')
-rwxr-xr-x | ltconfig | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -422,8 +422,10 @@ fi if test -n "$tagname"; then # Check whether tagname contains only valid characters - case "$tagname" in - *[!-_A-Za-z0-9,/]*) + case `$echo "X$tagname" | + $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in + "") ;; + *) echo "$progname: invalid tag name: $tagname" 1>&2 exit 1 ;; |