Add in extra args required for open() on Linux
authorPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 16:33:18 +0000 (16:33 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 16:33:18 +0000 (16:33 +0000)
cde/lib/DtHelp/CanvasOs.c

index 9ee3f51b67d3e4a9040896e57ad801d2c313bc58..56e510d7c932e212e60dd9828e4a8d825a497426 100644 (file)
@@ -139,7 +139,11 @@ _DtCvRunInterp(
      * write the data to file.
      */
     result = -1;
+#if defined(linux)
+    myFd   = open(fileName, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO);
+#else
     myFd   = open(fileName, O_WRONLY | O_CREAT | O_TRUNC);
+#endif
     if (myFd != -1)
       {
        /*