Package: r-base-core
Severity: serious
Version: 2.15.3~20130324-1
Control: tag -1 patch

mktemp by default creates files with 0600.

Thus, if there isn't an already existing /etc/R/Renviron, it will be
created with 0600, which is sort of useless, and will cause all R
packages built on buildd's to fail.

A simple patch would be to change this:

     tmpRenviron=$(mktemp)
+    chmod 0644 "$tmpRenviron"
     cat /usr/lib/R/etc/Renviron.ucf > $tmpRenviron

[It's probably also a good idea to quote $tmpRenviron just in case
TMPDIR contains spaces, but that's a bit minor, and I'm certain many
other things would fail if someone actually did that.]


Don Armstrong

-- 
Judge if you want.
We are all going to die.
I intend to deserve it.
 -- a softer world #421
    http://www.asofterworld.com/index.php?id=421

http://www.donarmstrong.com              http://rzlab.ucr.edu


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to