Fix permissions for festival app (bug #2334)
authorMark Spencer <markster@digium.com>
Tue, 31 Aug 2004 13:37:30 +0000 (13:37 +0000)
committerMark Spencer <markster@digium.com>
Tue, 31 Aug 2004 13:37:30 +0000 (13:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3687 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_festival.c

index c6a4008..14744ba 100755 (executable)
@@ -362,7 +362,7 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
                snprintf(cachefile, sizeof(cachefile), "%s/%s", cachedir, MD5Hex);
                fdesc=open(cachefile,O_RDWR);
                if (fdesc==-1) {
-                       fdesc=open(cachefile,O_CREAT|O_RDWR,0);
+                       fdesc=open(cachefile,O_CREAT|O_RDWR,S_IRWXU);
                        if (fdesc!=-1) {
                                writecache=1;
                                strln=strlen((char *)data);