File THE-3.1-open.diff of Package the

--- rexx.c.orig	2008-01-12 14:12:19.000000000 +0100
+++ ./rexx.c	2008-01-12 14:13:15.000000000 +0100
@@ -1821,9 +1821,9 @@ static int run_os_command
       if (err)
       {
 #if defined(UNIX)
-         if ((errfd = open(errfile,O_RDWR|O_CREAT|O_TRUNC)) == (-1))
+         if ((errfd = open(errfile,O_RDWR|O_CREAT|O_TRUNC,0600)) == (-1))
 #else
-         if ((errfd = open(errfile,O_RDWR|O_CREAT|O_TRUNC,S_IWRITE|S_IREAD)) == (-1))
+         if ((errfd = open(errfile,O_RDWR|O_CREAT|O_TRUNC,S_IWRITE|S_IREAD,0600)) == (-1))
 #endif
          {
             TRACE_RETURN();