diff options
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/updmap.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/texlive/updmap.pl b/Master/texmf-dist/scripts/texlive/updmap.pl index 68c5f35913e..7b796c8a614 100755 --- a/Master/texmf-dist/scripts/texlive/updmap.pl +++ b/Master/texmf-dist/scripts/texlive/updmap.pl @@ -1476,6 +1476,11 @@ sub enable_disable_maps { if ($w =~ m/=/) { # this is --enable MapType=MapName my ($type, $map) = split ('=', $w); + # allow for all lowercase map types (map/mixedmap/kanjimap) + $type =~ s/map$/Map/; + $type = ucfirst($type); + # don't allow for map names containing / + die "$prg: map files cannot be relative/absolute paths: $map\n" if ($map =~ m{/}) enable_map($tc, $type, $map); } else { # this is --disable MapName |