LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File fillup-1.42-cloexec.patch of Package fillup (Project openSUSE:Factory)

--- SRC/services.c.orig
+++ SRC/services.c
@@ -342,7 +342,7 @@ openFileForReading
 {
     Service_t       returnValue;
 
-    *filePointer = fopen( filename, "r" );
+    *filePointer = fopen( filename, "re" );
     if( *filePointer == NULL )
     {
         fillup_exception( __FILE__, __LINE__, ServiceException, 
@@ -368,7 +368,7 @@ openFileForWriting
 {
     Service_t       returnValue;
 
-    *filePointer = fopen( filename, "w" );
+    *filePointer = fopen( filename, "we" );
     if( *filePointer == NULL )
     {
         fillup_exception( __FILE__, __LINE__, ServiceException,