fix last commit
authorDavid Schleef <ds@schleef.org>
Wed, 8 Jul 2009 06:10:02 +0000 (23:10 -0700)
committerDavid Schleef <ds@schleef.org>
Wed, 8 Jul 2009 06:10:02 +0000 (23:10 -0700)
orc/orccodemem.c

index f3ae071..8d8ba9c 100644 (file)
@@ -45,7 +45,7 @@ orc_compiler_allocate_codemem (OrcCompiler *compiler)
     filename = malloc (strlen ("/tmp/orcexec") +
         strlen (compiler->program->name) + 1);
     sprintf(filename, "/tmp/orcexec%s", compiler->program->name);
-    fd = open (filename, O_RDWR);
+    fd = open (filename, O_RDWR | O_CREAT, S_IRWXU);
     if (fd == -1) {
       /* FIXME oh crap */
       ORC_COMPILER_ERROR (compiler, "failed to create temp file");