summaryrefslogtreecommitdiffstats
path: root/tools/src
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 /tools/src
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 'tools/src')
-rw-r--r--tools/src/h5jam/h5jam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/src/h5jam/h5jam.c b/tools/src/h5jam/h5jam.c
index 61de604..f41f8dc 100644
--- a/tools/src/h5jam/h5jam.c
+++ b/tools/src/h5jam/h5jam.c
@@ -292,7 +292,7 @@ main (int argc, const char *argv[])
H5Pclose(plist);
H5Fclose(ifile);
- ufid = HDopen(ub_file, O_RDONLY, 0);
+ ufid = HDopen(ub_file, O_RDONLY, H5_POSIX_OPEN_MODE_0000);
if(ufid < 0) {
error_msg("unable to open user block file \"%s\"\n", ub_file);
leave (EXIT_FAILURE);
@@ -307,7 +307,7 @@ main (int argc, const char *argv[])
fsize = (off_t)sbuf.st_size;
- h5fid = HDopen(input_file, O_RDONLY, 0);
+ h5fid = HDopen(input_file, O_RDONLY, H5_POSIX_OPEN_MODE_0000);
if(h5fid < 0) {
error_msg("unable to open HDF5 file for read \"%s\"\n", input_file);
HDclose (ufid);
@@ -325,7 +325,7 @@ main (int argc, const char *argv[])
h5fsize = (hsize_t)sbuf2.st_size;
if (output_file == NULL) {
- ofid = HDopen (input_file, O_WRONLY, 0);
+ ofid = HDopen (input_file, O_WRONLY, H5_POSIX_OPEN_MODE_0000);
if (ofid < 0) {
error_msg("unable to open output file \"%s\"\n", output_file);
@@ -335,7 +335,7 @@ main (int argc, const char *argv[])
}
}
else {
- ofid = HDopen (output_file, O_WRONLY | O_CREAT | O_TRUNC, 0644);
+ ofid = HDopen (output_file, O_WRONLY | O_CREAT | O_TRUNC, H5_POSIX_OPEN_MODE_0644);
if (ofid < 0) {
error_msg("unable to create output file \"%s\"\n", output_file);