summaryrefslogtreecommitdiffstats
path: root/perform/zip_perf.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-06-11 22:18:37 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-06-11 22:18:37 (GMT)
commit09da63a8b952ebf2572c741c9f3855ad492441a7 (patch)
treec3789c011c0dbd675cd81cdf4cbbf1872a163086 /perform/zip_perf.c
parent2f67716abca7e072fb934db66400c7cb1627b7f2 (diff)
downloadhdf5-09da63a8b952ebf2572c741c9f3855ad492441a7.zip
hdf5-09da63a8b952ebf2572c741c9f3855ad492441a7.tar.gz
hdf5-09da63a8b952ebf2572c741c9f3855ad492441a7.tar.bz2
[svn-r7026] Purpose:
Bug Fix Description: On HP-UX platforms, the "open()" function needs to specify that the file being created has permissions S_IRWXU, which means that it gives read/write/execute permissions to the user who created the file (how nice of it!). Solution: Added the S_IRWXU flag to the open() function call. Platforms tested: HP-UX 11 Arabica, Modi4, Verbena Misc. update:
Diffstat (limited to 'perform/zip_perf.c')
-rw-r--r--perform/zip_perf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perform/zip_perf.c b/perform/zip_perf.c
index 00b270c..b005528 100644
--- a/perform/zip_perf.c
+++ b/perform/zip_perf.c
@@ -507,7 +507,7 @@ do_write_test(unsigned long file_size, unsigned long min_buf_size,
/* do uncompressed data write */
gettimeofday(&timer_start, NULL);
- output = open(filename, O_RDWR | O_CREAT);
+ output = open(filename, O_RDWR | O_CREAT, S_IRWXU);
if (output == -1)
error(strerror(errno));