[59585] trunk/base

jmr at macports.org jmr at macports.org
Sat Oct 17 08:52:21 PDT 2009


Revision: 59585
          http://trac.macports.org/changeset/59585
Author:   jmr at macports.org
Date:     2009-10-17 08:52:20 -0700 (Sat, 17 Oct 2009)
Log Message:
-----------
ensure that we set a reasonable umask at startup, and list the destroot_umask option in macports.conf (fixes #21389)

Modified Paths:
--------------
    trunk/base/doc/macports.conf.in
    trunk/base/src/port/port.tcl

Modified: trunk/base/doc/macports.conf.in
===================================================================
--- trunk/base/doc/macports.conf.in	2009-10-17 15:50:46 UTC (rev 59584)
+++ trunk/base/doc/macports.conf.in	2009-10-17 15:52:20 UTC (rev 59585)
@@ -79,6 +79,9 @@
 # of physical memory plus one, whichever is less.
 #buildmakejobs		0
 
+# umask value to use when a port installs its files
+#destroot_umask 022
+
 # Set whether to automatically execute "clean" after "install" of ports
 #portautoclean		yes
 

Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl	2009-10-17 15:50:46 UTC (rev 59584)
+++ trunk/base/src/port/port.tcl	2009-10-17 15:52:20 UTC (rev 59585)
@@ -3604,6 +3604,9 @@
 set cmd_argc $argc
 set cmd_argn 0
 
+# make sure we're using a sane umask
+umask 022
+
 # If we've been invoked as portf, then the first argument is assumed
 # to be the name of a command file (i.e., there is an implicit -F
 # before any arguments).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091017/01f588bf/attachment-0001.html>


More information about the macports-changes mailing list