shithub: rott

Download patch

ref: 78242692646cdeeed54e94ce1518696dfb35962f
parent: 18294dc5c1870948cf8a7375e3084b02eeab9dbd
author: Jacob Moody <moody@posixcafe.org>
date: Fri Feb 10 21:14:01 EST 2023

open fixes

--- a/src/rt_cfg.c
+++ b/src/rt_cfg.c
@@ -1098,7 +1098,7 @@
 
     // Write Battle File
     GetPathFromEnvironment( filename, ApogeePath, BattleName );
-    file = open( filename, O_RDWR | O_TEXT | O_CREAT | O_TRUNC);
+    file = create( filename, O_RDWR, 0666);
 
     if ( file == -1 )
     {
@@ -1454,7 +1454,7 @@
     }
 
     GetPathFromEnvironment( filename, ApogeePath, SoundName );
-    file = open( filename, O_RDWR | O_TEXT | O_CREAT | O_TRUNC);
+    file = create( filename, O_RDWR, 0666);
 
     //file = open ( filename, O_RDWR | O_TEXT | O_CREAT | O_TRUNC );
 
@@ -1570,7 +1570,7 @@
 
     GetPathFromEnvironment( filename, ApogeePath, ConfigName );
     
-    file = open( filename, O_RDWR | O_TEXT | O_CREAT | O_TRUNC);
+    file = create( filename, O_RDWR, 0666);
 
     //file = open( filename,O_RDWR | O_TEXT | O_CREAT | O_TRUNC );