[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#198546: tetex-bin: mktexlsr/texhash fails writing ls-R as user



> Right.  Then possible solutions I can guess are:
> 
> 1) stop to ask with debconf completely.
> 
> 2) chown, chmod of /var/lib/texmf etc. to root:users, 664
>    in postinst.  ("users" should be debconf answer, of course)
> 
> I'm not sure if 2) is secure enough or not.
> But perhaps 2) will fix #198549 too.

The problem is that mktexlsr can not write to /var/lib/texmf. The ls-R
files are have 664 and root:users (debconf answer). So normally the ls-R
files could be manipulated by users too. But the mktexlsr run deletes
the old ls-R and creates (moves) the a new in it's place. The directory
isn't writeable for the users - process failed.

I wonder, how upstream does solve this?

A "cat ls-R.tmp > ls-R" instead of moving the temporary ls-R could solve
this.

BTW, this could fix #198549, too.

-- 
* mail kai.weber@glorybox.de
  web http://www.glorybox.de
  pgp 0x594D4132



Reply to: