summaryrefslogtreecommitdiff
path: root/Build/source/texk/tetex
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2012-05-24 00:59:37 +0000
committerNorbert Preining <preining@logic.at>2012-05-24 00:59:37 +0000
commit52684f20151e412a7e52e42d61f1637195f16ad0 (patch)
tree0fa2a5732c7727852214ed6ed0f1bcd709edb035 /Build/source/texk/tetex
parent1278955b9bdad73f8ff677435a6128ead8fc9cca (diff)
some comments about the sudo updmap pain and HOME not being reset
git-svn-id: svn://tug.org/texlive/trunk@26616 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/tetex')
-rwxr-xr-xBuild/source/texk/tetex/updmap.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/texk/tetex/updmap.pl b/Build/source/texk/tetex/updmap.pl
index 48e9adb5f8d..5c0a3958075 100755
--- a/Build/source/texk/tetex/updmap.pl
+++ b/Build/source/texk/tetex/updmap.pl
@@ -15,6 +15,19 @@
# limitation.
#
# TODO
+# - $HOME and sudo and updmap-sys horror
+# some instances of sudo do not reset $HOME to the home of root
+# as an effect of "sudo updmap" creates root owned files in the home
+# of a normal user, and "sudo updmap-sys" uses map files and updmap.cfg
+# files from the directory of a normal user, but creating files
+# in TEXMFSYSCONFIG. This is *all* wrong.
+# We should check: if we are running as UID 0 (root) on Unix and the
+# env{HOME} is NOT the same as the one of root, then give a warning
+# and reset it to the real home dir of root.
+# If we don't want to read /etc/passwd to find out the home dir of
+# root, we could simply check for /root/ being contained in HOME,
+# or check only for /root/ and if it is different reset $HOME to
+# some non-existing directory.
# - check all other invocations
# - after TL2012? Maybe remove support for reading updmap-local.cfg
#