Package: tetex-base Version: 2.0.2c-6 Severity: minor Hello, whenever I upgrade tetex via `sudo apt-get upgrade` it creates the file ${HOME}/texmf/ls-R with owner=root and mode 600: zeisberg@cepheus:~/texmf$ ls -l total 0 drwx------ 3 zeisberg users 18 Jan 12 08:58 tex zeisberg@cepheus:~/texmf$ sudo /var/lib/dpkg/info/tetex-base.postinst configure Running initex. This may take some time. ... fmtutil: /var/lib/texmf/web2c/lambda.oft installed. fmtutil: /var/lib/texmf/web2c/omega.oft installed. fmtutil: /var/lib/texmf/web2c/amstex.fmt installed. fmtutil: /var/lib/texmf/web2c/latex.fmt installed. fmtutil: /var/lib/texmf/web2c/pdflatex.fmt installed. fmtutil: /var/lib/texmf/web2c/pdftex.fmt installed. fmtutil: /var/lib/texmf/web2c/tex.fmt installed. fmtutil: /var/lib/texmf/web2c/cont-en.efmt installed. fmtutil: /var/lib/texmf/web2c/elatex.efmt installed. fmtutil: /var/lib/texmf/web2c/etex.efmt installed. fmtutil: /var/lib/texmf/web2c/latex.efmt installed. fmtutil: /var/lib/texmf/web2c/mptopdf.efmt installed. fmtutil: /var/lib/texmf/web2c/pdfelatex.efmt installed. fmtutil: /var/lib/texmf/web2c/pdfetex.efmt installed. fmtutil: /var/lib/texmf/web2c/pdflatex.efmt installed. fmtutil: /var/lib/texmf/web2c/metafun.mem installed. fmtutil: /var/lib/texmf/web2c/mpost.mem installed. fmtutil: /var/lib/texmf/web2c/mf.base installed. zeisberg@cepheus:~/texmf$ ls -l total 4 -rw------- 1 root root 198 Feb 7 16:33 ls-R drwx------ 3 zeisberg users 18 Jan 12 08:58 tex The problem here is, that a) sudo doesn't unset HOME (which is for most cases a good behaviour) b) mktexlsr obiously uses ${HOME}/texmf and is not affected by umask[1] (I'm not sure, if b) alone is already a bug.) When I add HOME to the envvars that are unset'ed at the top of tetex-base.postinst, this file is not created. I noticed the problem, because xdvi (among others) beweils, that it cannot read this file. Regards Uwe [1] zeisberg@cepheus:~/texmf$ ls tex zeisberg@cepheus:~/texmf$ sudo -s root@cepheus:~/texmf# umask 22 root@cepheus:~/texmf# mktexlsr mktexlsr: Updating /home/zeisberg/texmf/ls-R... mktexlsr: Updating /usr/local/share/texmf/ls-R... mktexlsr: Updating /usr/local/lib/texmf/ls-R... mktexlsr: Updating /var/lib/texmf/ls-R... mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... mktexlsr: Updating /var/cache/fonts/ls-R... mktexlsr: Done. root@cepheus:~/texmf# exit zeisberg@cepheus:~/texmf$ ls -l total 4 -rw------- 1 root root 198 Feb 7 16:47 ls-R drwx------ 3 zeisberg users 18 Jan 12 08:58 tex -- Uwe Zeisberger cat /*dev/null; echo 'Hello World!'; cat > /dev/null <<*/ () { } int main() { printf("Hello World!\n");} /* */
Attachment:
signature.asc
Description: Digital signature