[cig-commits] [commit] devel, master: Fix file mode in open_file_abs_r_fbin. (fcb79a1)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Nov 6 08:28:41 PST 2014


Repository : https://github.com/geodynamics/specfem3d_globe

On branches: devel,master
Link       : https://github.com/geodynamics/specfem3d_globe/compare/bc58e579b3b0838a0968725a076f5904845437ca...be63f20cbb6f462104e949894dbe205d2398cd7f

>---------------------------------------------------------------

commit fcb79a15ce67f91465d0d1d565cc9e297cec36bd
Author: Elliott Sales de Andrade <esalesde at physics.utoronto.ca>
Date:   Tue Aug 12 23:45:18 2014 -0400

    Fix file mode in open_file_abs_r_fbin.
    
    It should be read-only, not update.


>---------------------------------------------------------------

fcb79a15ce67f91465d0d1d565cc9e297cec36bd
 src/shared/binary_c_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/binary_c_io.c b/src/shared/binary_c_io.c
index 73822ce..f7de6f9 100644
--- a/src/shared/binary_c_io.c
+++ b/src/shared/binary_c_io.c
@@ -184,7 +184,7 @@ void open_file_abs_r_fbin(int *fid, char *filename,int *length, long long *files
   }
 
   // opens file
-  ft = fopen( fncopy, "rb+" );
+  ft = fopen( fncopy, "rb" );
   if( ft == NULL ) { perror("fopen"); exit(-1); }
 
   // sets mode for full buffering



More information about the CIG-COMMITS mailing list