Re: [Rd] umask problem (PR#7086)

From: Kurt Hornik <Kurt.Hornik_at_wu-wien.ac.at>
Date: Thu 15 Jul 2004 - 05:29:32 EST

>>>>> clock writes:

> Hello
> R-1.9.0
> when the user that compiles R has umask 027 and root has umask 022, then
> R is installed incorrectly:
> clock@beton:~$ R
> /usr/bin/R: line 156: /usr/lib/R/bin/R.bin: Permission denied
> /usr/bin/R: line 156: exec: /usr/lib/R/bin/R.bin: cannot execute: Success
> clock@beton:~$ ls -la /usr/lib/R/bin/R.bin
> -rwxr-x--- 1 root root 2032542 Jul 13 20:04 /usr/lib/R/bin/R.bin
> ^^^

Thanks.

This is due to using copy-if-change to avoid unnecessary copying for (at least) the main executable and the shared libraries under Unix.

Now, copy-if-change of course uses "cp" for doing its work, whereas in the GNU build environment we would typically use $INSTALL and its variants for doing so (and the latter would always set the mode to 755 or 644 [for data]).

The simplest fix to me seems to enhance copy-if-change to

I guess there is a similar issue with things "installed" by move-if-change.

-k



R-devel@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel Received on Thu Jul 15 18:12:59 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:02 EST