aboutsummaryrefslogtreecommitdiffstats
path: root/main/manager.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-12 20:27:01 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-12 20:27:01 +0000
commit5564e9805bfe86e270ed26bdfe650d884df75c51 (patch)
tree15aa80694bd9e1e661c350c619af0a1e7ab6750d /main/manager.c
parent5f51defbd04b100e951485b62d2c23556ae658e8 (diff)
Even more sane permissions. This should be handled via a umask, like in many other places.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103474 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c
index 22495c588..ee370c314 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, 0644)) != -1) {
+ if ((fd = open(filepath->str, O_CREAT | O_EXCL, AST_FILE_MODE)) != -1) {
close(fd);
astman_send_ack(s, m, "New configuration file created successfully");
} else