[tex-live] input
Zdenek Wagner
zdenek.wagner at gmail.com
Tue Feb 26 21:26:36 CET 2008
2008/2/26, Philip Taylor (Webmaster) <P.Taylor at rhul.ac.uk>:
> OK, but isn't this answering the non-question
> rather than the question ?! In other words,
> you have told me (and others) how TeX Live
> allows TeX to forbid certain file paths,
> without clarifying how Steve (or others)
> can be sure that TeX will open /their/
> MyTeXlib[.tex] rather than just the first
> file of that name found in TeX's search path ...
>
You can try to use the full path. If it is not allowed, you will see
something like the following:
(./open.aux)pdflatex: Not reading to /opt/apache-ant-1.6.5/README
(openin_any = p).
! I can't find file `/opt/apache-ant-1.6.5/README'.
l.3 \input /opt/apache-ant-1.6.5/README
Please type another input file name:
If you set openin_any = a, TeX accepts full path in \input.
>
> Zdenek Wagner wrote:
>
> > Sometimes by modifying texmf.cnf. This is part of my texmf.cnf in TL2007:
> > % Allow TeX \openin, \openout, or \input on filenames starting with `.'
> > % (e.g., .rhosts) or outside the current tree (e.g., /etc/passwd)?
> > % a (any) : any file can be opened.
> > % r (restricted) : disallow opening "dotfiles".
> > % p (paranoid) : as 'r' and disallow going to parent directories, and
> > % restrict absolute paths to be under $TEXMFOUTPUT.
> > openout_any = p
> > openin_any = a
>
--
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz
More information about the tex-live
mailing list