mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
Fix build on *BSD. These permissions constants are not available there.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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_set(&filepath, 0, "%s/", ast_config_AST_CONFIG_DIR);
|
||||||
ast_str_append(&filepath, 0, "%s", fn);
|
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);
|
close(fd);
|
||||||
astman_send_ack(s, m, "New configuration file created successfully");
|
astman_send_ack(s, m, "New configuration file created successfully");
|
||||||
} else
|
} else
|
||||||
|
|||||||
Reference in New Issue
Block a user