diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-22 22:35:29 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-22 22:35:29 +0000 |
commit | d83581cc8b0fde1e2d75ad4587e1e7deb1670a7f (patch) | |
tree | d307ee32d340feb1458c0332734f8d17c3d266b0 /contrib | |
parent | 9acdc3411f9e9d3e78a52be38e443f68f9d1cc49 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.8@292825 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/scripts/ast_tls_cert | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/scripts/ast_tls_cert b/contrib/scripts/ast_tls_cert index 9ed3b7188..4f540fdd2 100755 --- a/contrib/scripts/ast_tls_cert +++ b/contrib/scripts/ast_tls_cert @@ -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}"} |