[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:
This commit is contained in:
Bill Wendling 2003-06-11 17:18:37 -05:00
parent 2f67716abc
commit 09da63a8b9

View File

@ -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));