Open HDF5 read-only for applycal
Created by: tammojan
In the file H5Parm.cc line 18:
H5Parm::H5Parm(const std::string& filename, bool forceNew,
bool forceNewSolSet, const std::string& solSetName):
H5::H5File(filename,
!forceNew&&access(filename.c_str(),F_OK)!=-1?H5F_ACC_RDWR:H5F_ACC_TRUNC
)
I think this can be fixed by replacing the whole line with the condition with
forceNew?H5F_ACC_TRUNC:H5F_ACC_RDONLY