From: Tilghman Lesher Date: Tue, 24 Jul 2007 20:42:05 +0000 (+0000) Subject: Found another place where we should be using the umask (thanks jcmoore) X-Git-Tag: 1.4.10~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7336cd3ff3195c6da8b4c784b6f8678ec737f85;p=thirdparty%2Fasterisk.git Found another place where we should be using the umask (thanks jcmoore) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76891 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/app.c b/main/app.c index da88a42b32..697420dc12 100644 --- a/main/app.c +++ b/main/app.c @@ -548,7 +548,7 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile, end = start = time(NULL); /* pre-initialize end to be same as start in case we never get into loop */ for (x = 0; x < fmtcnt; x++) { - others[x] = ast_writefile(prepend ? prependfile : recordfile, sfmt[x], comment, O_TRUNC, 0, 0700); + others[x] = ast_writefile(prepend ? prependfile : recordfile, sfmt[x], comment, O_TRUNC, 0, 0777); if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "x=%d, open writing: %s format: %s, %p\n", x, prepend ? prependfile : recordfile, sfmt[x], others[x]);