From 09da63a8b952ebf2572c741c9f3855ad492441a7 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 11 Jun 2003 17:18:37 -0500 Subject: [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: --- perform/zip_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v0.12