aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-13 21:07:08 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-13 21:07:08 +0000
commitbce890ffc7726b373bc7acbfe47d7caf6d0f11b7 (patch)
treea99058ccac415b84b484541314a2198fc1810e9f /channels/chan_zap.c
parent54377c6a032421de24ee5d39a2fa8b5a857dfc1b (diff)
Fix building on newer systems which require a third arg to open() when using O_CREAT.
Issue 11238, reported by puzzled. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89254 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 11165ae04..0450a2a8c 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -9479,7 +9479,7 @@ static int handle_pri_set_debug_file(int fd, int argc, char **argv)
if (ast_strlen_zero(argv[4]))
return RESULT_SHOWUSAGE;
- myfd = open(argv[4], O_CREAT|O_WRONLY);
+ myfd = open(argv[4], O_CREAT|O_WRONLY, 0600);
if (myfd < 0) {
ast_cli(fd, "Unable to open '%s' for writing\n", argv[4]);
return RESULT_SUCCESS;