summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2017-04-26 08:14:28 +0000
committerNorbert Preining <preining@logic.at>2017-04-26 08:14:28 +0000
commit42c279915eb59707dcb3fc0ce8c50c65dadbbe21 (patch)
tree7ab21299c42252a88bdaebe0695f8f893a6c623a /Master/texmf-dist
parentf986fd958746473333cf7ecac040de4fe50e189d (diff)
updmap: allow for all lowercase map type on command line, disallow maps with /
git-svn-id: svn://tug.org/texlive/trunk@44056 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/updmap.pl5
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