From 56683a700b0e926249062c70ae5e5dc739b5d3cb Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sun, 11 Mar 2012 16:33:18 +0000 Subject: [PATCH] Add in extra args required for open() on Linux --- cde/lib/DtHelp/CanvasOs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cde/lib/DtHelp/CanvasOs.c b/cde/lib/DtHelp/CanvasOs.c index 9ee3f51b..56e510d7 100644 --- a/cde/lib/DtHelp/CanvasOs.c +++ b/cde/lib/DtHelp/CanvasOs.c @@ -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) { /* -- 2.25.1