From: Russell Bryant Date: Tue, 12 Feb 2008 15:16:39 +0000 (+0000) Subject: Fix build on *BSD. These permissions constants are not available there. X-Git-Tag: 1.6.0-beta3~2^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d42f6f7ce56c6c5d5a0325f41b3a5d981d86b395;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/manager.c b/main/manager.c index a5319e7e09..226aa85486 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