diff options
author | Karl Berry <karl@freefriends.org> | 2009-03-17 17:20:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-03-17 17:20:30 +0000 |
commit | d979f80525d609af93b4072e4430f384950cbecf (patch) | |
tree | 413c394e4a1b6954965131a8c851bacfbd4506a8 /Build/source | |
parent | 2aa72314cbd66dc3beb0bf1b050bb351490a90d4 (diff) |
return to original pwd instead of / when cleaning up
git-svn-id: svn://tug.org/texlive/trunk@12411 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/tetex/ChangeLog | 8 | ||||
-rwxr-xr-x | Build/source/texk/tetex/updmap | 3 |
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= |