aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/utilities
diff options
context:
space:
mode:
authorzgu <none@none>2013-02-08 14:32:13 -0800
committerzgu <none@none>2013-02-08 14:32:13 -0800
commit3523e54f3417ade23a6bebb11039f1b35df2b618 (patch)
treef24c1bee831e1cd791ca25d9a26b91cfb5893b12 /src/share/vm/utilities
parent7c8cb4445d0fe6146d2e8de0d7cd0dc63f62b714 (diff)
parentc942fccfda47416e10a2c9ad7fb2f5c38e501fd9 (diff)
Merge
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 d8fe93b64..d2ec49159 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, 0666);
+ fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0600);
}
}
@@ -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, 0666);
+ fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0600);
}
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, 0666);
+ fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0600);
}
}