]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't create directories without at least o+x
authorTerry Wilson <twilson@digium.com>
Fri, 22 Oct 2010 22:35:29 +0000 (22:35 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 22 Oct 2010 22:35:29 +0000 (22:35 +0000)
Also, making files that you are going to modify read-only is dumb.

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

contrib/scripts/ast_tls_cert

index 9ed3b7188b4b054d363804e9178b92038920e2ba..4f540fdd2b66bfec7f44699bdb3aecffd3d46151 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}"}