summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2008-02-12 20:02:32 +0000
committerJason Parker <jparker@digium.com>2008-02-12 20:02:32 +0000
commit7dd21605f388f0a3189fe9de8509c65217ccec87 (patch)
treed08c6794a102af6e506d11427f79031c0c68fb5a /main
parente29680ed66831992f8a9b9a501b9959a8b0ed2b7 (diff)
Use slight more sane permissions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c
index 226aa8548..22495c588 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1425,7 +1425,7 @@ static int action_createconfig(struct mansession *s, const struct message *m)
ast_str_set(&filepath, 0, "%s/", ast_config_AST_CONFIG_DIR);
ast_str_append(&filepath, 0, "%s", fn);
- if ((fd = open(filepath->str, O_CREAT | O_EXCL, 0744)) != -1) {
+ if ((fd = open(filepath->str, O_CREAT | O_EXCL, 0644)) != -1) {
close(fd);
astman_send_ack(s, m, "New configuration file created successfully");
} else