summaryrefslogtreecommitdiffstats
path: root/test/dsets.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-04-28 15:11:29 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-04-28 15:11:29 (GMT)
commitd3b664b6a79508d78974a347a9d450e72defb76b (patch)
treec1d66801ef73f7b1cefbfccbbbe155e9de1b6914 /test/dsets.c
parentc2729b6ad13170d7311848ecba2483515e113825 (diff)
downloadhdf5-d3b664b6a79508d78974a347a9d450e72defb76b.zip
hdf5-d3b664b6a79508d78974a347a9d450e72defb76b.tar.gz
hdf5-d3b664b6a79508d78974a347a9d450e72defb76b.tar.bz2
Changed the Windows POSIX open() file permissions to be correct
according to MSDN. Partial fix for HDFFV-9630.
Diffstat (limited to 'test/dsets.c')
-rw-r--r--test/dsets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dsets.c b/test/dsets.c
index ef58509..4d2968e 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -569,7 +569,7 @@ test_simple_io(const char *env_h5_drvr, hid_t fapl)
if(H5Fclose(file) < 0) goto error;
file = -1;
- f = HDopen(filename, O_RDONLY, 0);
+ f = HDopen(filename, O_RDONLY, H5_POSIX_OPEN_MODE_0000);
HDlseek(f, (off_t)offset, SEEK_SET);
if(HDread(f, rdata, sizeof(int)*DSET_DIM1*DSET_DIM2) < 0)
goto error;
@@ -683,7 +683,7 @@ test_userblock_offset(const char *env_h5_drvr, hid_t fapl, hbool_t new_format)
if(H5Fclose(file) < 0) goto error;
file = -1;
- f = HDopen(filename, O_RDONLY, 0);
+ f = HDopen(filename, O_RDONLY, H5_POSIX_OPEN_MODE_0000);
HDlseek(f, (off_t)offset, SEEK_SET);
if(HDread(f, rdata, sizeof(int)*DSET_DIM1*DSET_DIM2) < 0)
goto error;