aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/utilities
diff options
context:
space:
mode:
authorzgu <none@none>2013-02-12 12:19:28 -0500
committerzgu <none@none>2013-02-12 12:19:28 -0500
commit531063fe148131c5cd6100a2b5979423b1f4725c (patch)
tree18e223b0dab3a2d32ecc61d70cdf64ca41f5279c /src/share/vm/utilities
parent0ce18799f73c562945465c6b465a01ded2d32bc3 (diff)
8007950: Undo hs_file permission change
Summary: Reverse hs_err file permission back to 0666, as early push was premature Reviewed-by: dsamersoff, dcubed, acorn
Diffstat (limited to 'src/share/vm/utilities')
-rw-r--r--src/share/vm/utilities/vmError.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/share/vm/utilities/vmError.cpp b/src/share/vm/utilities/vmError.cpp
index d2ec49159..d8fe93b64 100644
--- a/src/share/vm/utilities/vmError.cpp
+++ b/src/share/vm/utilities/vmError.cpp
@@ -917,7 +917,7 @@ void VMError::report_and_die() {
bool copy_ok =
Arguments::copy_expand_pid(ErrorFile, strlen(ErrorFile), buffer, sizeof(buffer));
if (copy_ok) {
- fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0600);
+ fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
}
}
@@ -928,7 +928,7 @@ void VMError::report_and_die() {
// so use the default name in the current directory
jio_snprintf(&buffer[len], sizeof(buffer)-len, "%shs_err_pid%u.log",
os::file_separator(), os::current_process_id());
- fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0600);
+ fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
}
if (fd == -1) {
@@ -937,7 +937,7 @@ void VMError::report_and_die() {
if (tmpdir != NULL && tmpdir[0] != '\0') {
jio_snprintf(buffer, sizeof(buffer), "%s%shs_err_pid%u.log",
tmpdir, os::file_separator(), os::current_process_id());
- fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0600);
+ fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
}
}