summaryrefslogtreecommitdiff
path: root/Build/source/texk/tetex
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/tetex')
-rw-r--r--Build/source/texk/tetex/ChangeLog8
-rwxr-xr-xBuild/source/texk/tetex/updmap3
2 files changed, 10 insertions, 1 deletions
diff --git a/Build/source/texk/tetex/ChangeLog b/Build/source/texk/tetex/ChangeLog
index 0034d72a986..e0c8c351c05 100644
--- a/Build/source/texk/tetex/ChangeLog
+++ b/Build/source/texk/tetex/ChangeLog
@@ -1,3 +1,11 @@
+2009-03-17 Karl Berry <karl@tug.org>
+
+ * updmap (main, cleanup): cd back to the original pwd instead of /,
+ to work around
+ rm: cannot get current directory: Permission denied
+ error in (at least) coreutils 5.2.1 in some ill-defined circumstance.
+ Report from Lars Madsen.
+
2008-10-27 Karl Berry <karl@tug.org>
* updmap.pl: also adjust printed output.
diff --git a/Build/source/texk/tetex/updmap b/Build/source/texk/tetex/updmap
index e09c817451b..a71378a01bc 100755
--- a/Build/source/texk/tetex/updmap
+++ b/Build/source/texk/tetex/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=