mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r5547] Purpose:
Bug fix. Description: H5Fopen call was using H5P_DEFAULT instead of file access flags Solution: Changed H5P_DEFAULT to H5F_ACC_RDONLY Platforms tested: IRIX64 6.5 (modi4) w/parallel
This commit is contained in:
parent
b5dfb3116d
commit
01f102c2d4
@ -1285,7 +1285,7 @@ do_fopen(parameters *param, char *fname, file_descr *fd /*out*/, int flags)
|
||||
if (flags & (PIO_CREATE | PIO_WRITE)) {
|
||||
fd->h5fd = H5Fcreate(fname, H5F_ACC_TRUNC, H5P_DEFAULT, acc_tpl);
|
||||
} else {
|
||||
fd->h5fd = H5Fopen(fname, H5P_DEFAULT, acc_tpl);
|
||||
fd->h5fd = H5Fopen(fname, H5F_ACC_RDONLY, acc_tpl);
|
||||
}
|
||||
|
||||
hrc = H5Pclose(acc_tpl);
|
||||
|
Loading…
Reference in New Issue
Block a user