[asterisk-commits] twilson: branch 1.8 r292825 - /branches/1.8/contrib/scripts/ast_tls_cert

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 22 17:35:33 CDT 2010


Author: twilson
Date: Fri Oct 22 17:35:29 2010
New Revision: 292825

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=292825
Log:
Don't create directories without at least o+x

Also, making files that you are going to modify read-only is dumb.

Modified:
    branches/1.8/contrib/scripts/ast_tls_cert

Modified: branches/1.8/contrib/scripts/ast_tls_cert
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/contrib/scripts/ast_tls_cert?view=diff&rev=292825&r1=292824&r2=292825
==============================================================================
--- branches/1.8/contrib/scripts/ast_tls_cert (original)
+++ branches/1.8/contrib/scripts/ast_tls_cert Fri Oct 22 17:35:29 2010
@@ -105,8 +105,6 @@
 CERT_MODE=server
 ORG_NAME=${DEFAULT_ORG}
 
-umask 377
-
 while getopts "hf:c:k:o:d:m:C:O:" OPTION
 do
 	case ${OPTION} in
@@ -152,6 +150,8 @@
 	mkdir -p "${OUTPUT_DIR}"
 fi
 
+umask 177
+
 case "${CERT_MODE}" in
 	server)
 		COMMON_NAME=${COMMON_NAME:-"${DEFAULT_SERVER_CN}"}




More information about the asterisk-commits mailing list