Fix permissions of temporary RTeX files (which are group and world-readable)

Posted Over 13 years ago. Visible to the public.

We use RTeX for PDF exports.
While converting LaTeX to PDF, RTeX opens a temporary file which has problematic permissions: Both group and world can read those files.

Although the temp files should go away they sometimes live longer than one would expect.
We patched RTeX to fix this (and have more secure permissions). Place the code below into config/initializers/rtex.rb

Thomas Eisenbarth
Last edit
Over 13 years ago
Attachments
License
Source code in this card is licensed under the MIT License.
Posted by Thomas Eisenbarth to makandra dev (2010-09-17 12:44)