Merged revisions 292825 via svnmerge from
authorTerry Wilson <twilson@digium.com>
Fri, 22 Oct 2010 22:40:55 +0000 (22:40 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 22 Oct 2010 22:40:55 +0000 (22:40 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292825 | twilson | 2010-10-22 15:35:29 -0700 (Fri, 22 Oct 2010) | 4 lines

  Don't create directories without at least o+x

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@292826 65c4cc65-6c06-0410-ace0-fbb531ad65f3

contrib/scripts/ast_tls_cert

index 9ed3b71..4f540fd 100755 (executable)
@@ -105,8 +105,6 @@ OUTPUT_BASE=asterisk # Our default cert basename
 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 @@ else
        mkdir -p "${OUTPUT_DIR}"
 fi
 
+umask 177
+
 case "${CERT_MODE}" in
        server)
                COMMON_NAME=${COMMON_NAME:-"${DEFAULT_SERVER_CN}"}