Bug#203532: tetex-extra: permissions of ls-R wrong
Julian Gilbey <jdg@polya.uklinux.net> schrieb:
> On Thu, Jul 31, 2003 at 02:44:45PM +0200, Frank K?ster wrote:
>> Unfortunately it isn't that simple. We would first have to load
>> dh_confmodule, get the answer the user gave at install time ("Which
>> group should own the ls-R files?") and chgrp to this. Maybe the others
>> can comment on this (I'm not the official maintainer, anyway), but I
>> think we should find a clean solution, not only a workaround.
>
> The simplest way is probably to modify mktexlsr to do the following:
>
> - (safely) create the temporary file in $TMPDIR instead of in the
> same directory as the existing ls-R
> - when all is successful, cat $db_file_tmp > $db_file, so that the
> permissions are preserved.
>
> Here is a patch which does this; what do people think?
Looks fine. I think we should change Debian's mktexlsr according to the
patch and also submit it to upstream.
Bye, Frank
--
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
Reply to: