[tex-live] updmap and /

Zdenek Wagner zdenek.wagner at gmail.com
Sun Mar 1 17:03:38 CET 2009


2009/3/1 Reinhard Kotucha <reinhard.kotucha at web.de>:
> On 24 February 2009 Zdenek Wagner wrote:
>
>  > And why is it necessary to "cd" anywhere? I would do it like that:
>  > rm -rf "$tmpdir" if -d "$tmpdir";
>
> Thomas explained it to me some years ago:  Since you can't remove your
> current working directory, you have to make sure that you are not
> inside a directory you want to remove.  The reason he chose "/" is
> that this directory always exists and never is supposed to be removed.
>
> Please also note that Thomas usually installs signal handlers in order
> to remove temporary files when the script aborts unexpectedly.  Hence,
> the code you propose will not work reliably.  You don't know where you
> are if the process is killed by a signal.  Yes, it's necessary to "cd"
> to a directory outside "$tmpdir".
>
In theory, the permissions of a directory can be 0744 so that
everybody can read it but cannot cd into it. It is possible to cd into
subdirectories but name completion by TAB does not work. It would be
quite strange for /. It might help to store `pwd` at the beginning of
the script because the user can cd into it and it should be outside
$tmpdir (I hope).

> I'm wondering about the funny file permissions reported by Lars.  Does
> any system has these settings by default?
>
> Regards,
>  Reinhard
>
> --
> ----------------------------------------------------------------------------
> Reinhard Kotucha                                      Phone: +49-511-3373112
> Marschnerstr. 25
> D-30167 Hannover                              mailto:reinhard.kotucha at web.de
> ----------------------------------------------------------------------------
> Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
> ----------------------------------------------------------------------------
>



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz


More information about the tex-live mailing list