[asterisk-commits] tilghman: branch 1.6.0 r164800 - in /branches/1.6.0: ./ contrib/scripts/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 16 13:55:38 CST 2008


Author: tilghman
Date: Tue Dec 16 13:55:38 2008
New Revision: 164800

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164800
Log:
Merged revisions 164798 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r164798 | tilghman | 2008-12-16 13:54:11 -0600 (Tue, 16 Dec 2008) | 4 lines
  
  Set up umask as a possible configuration option.
  (closes issue #13753)
   Reported by: irroot
........

Modified:
    branches/1.6.0/   (props changed)
    branches/1.6.0/contrib/scripts/safe_asterisk

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.0/contrib/scripts/safe_asterisk
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/contrib/scripts/safe_asterisk?view=diff&rev=164800&r1=164799&r2=164800
==============================================================================
--- branches/1.6.0/contrib/scripts/safe_asterisk (original)
+++ branches/1.6.0/contrib/scripts/safe_asterisk Tue Dec 16 13:55:38 2008
@@ -23,6 +23,10 @@
 
 # set system filemax on supported OSes if this variable is set
 # SYSMAXFILES=262144
+
+# Asterisk allows full permissions by default, so set a umask, if you want
+# restricted permissions.
+#UMASK=022
 
 # set max files open with ulimit. On linux systems, this will be automatically
 # set to the system's maximum files open devided by two, if not set here.
@@ -89,6 +93,10 @@
 
 fi
 
+if test "x$UMASK" != "x"; then
+	umask $UMASK
+fi
+
 #
 # Let Asterisk dump core
 #




More information about the asterisk-commits mailing list