diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-12 15:16:39 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-12 15:16:39 +0000 |
commit | d77c926d025758ae00f149d0f405a7287902b7fa (patch) | |
tree | b1c877ae2befd3374e6bcf066ada78a894ac988e | |
parent | 957d0820471997da38a90ee702321257cd538d65 (diff) |
Fix build on *BSD. These permissions constants are not available there.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103387 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c index a5319e7e0..226aa8548 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, S_IRUSR | S_IWUSR | S_IRGRP| S_IROTH)) != -1) { + if ((fd = open(filepath->str, O_CREAT | O_EXCL, 0744)) != -1) { close(fd); astman_send_ack(s, m, "New configuration file created successfully"); } else |