]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Found another place where we should be using the umask (thanks jcmoore)
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 24 Jul 2007 20:42:05 +0000 (20:42 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 24 Jul 2007 20:42:05 +0000 (20:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76891 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/app.c

index da88a42b32f438298f73fb91e517bd3d49be1376..697420dc125aa60e35d02ee73a78e109a12d7b4b 100644 (file)
@@ -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]);