summaryrefslogtreecommitdiff
path: root/Master/bin/i386-cygwin/updmap
diff options
context:
space:
mode:
Diffstat (limited to 'Master/bin/i386-cygwin/updmap')
-rwxr-xr-xMaster/bin/i386-cygwin/updmap3
1 files changed, 2 insertions, 1 deletions
diff --git a/Master/bin/i386-cygwin/updmap b/Master/bin/i386-cygwin/updmap
index e09c817451b..a71378a01bc 100755
--- a/Master/bin/i386-cygwin/updmap
+++ b/Master/bin/i386-cygwin/updmap
@@ -774,7 +774,7 @@ cleanup()
{
rc=$1
$needsCleanup && test -n "$tmpdir" && test -d "$tmpdir" \
- && { cd / && rm -rf "$tmpdir"; }
+ && { cd $orig_pwd && rm -rf "$tmpdir"; }
(exit $rc); exit $rc
}
@@ -1323,6 +1323,7 @@ main()
link_cmd="ln -s"
copy_cmd="cp"
copy=false
+ orig_pwd=`pwd`
cfgparam=
outputdirparam=