8007950: Undo hs_file permission change

Tue, 12 Feb 2013 12:19:28 -0500

author
zgu
date
Tue, 12 Feb 2013 12:19:28 -0500
changeset 4573
5ee2b330eacd
parent 4572
927a311d00f9
child 4574
deb43b8a436e
child 4598
7adae9244bc8

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

src/share/vm/utilities/vmError.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/utilities/vmError.cpp	Mon Feb 11 14:06:22 2013 -0500
     1.2 +++ b/src/share/vm/utilities/vmError.cpp	Tue Feb 12 12:19:28 2013 -0500
     1.3 @@ -917,7 +917,7 @@
     1.4          bool copy_ok =
     1.5            Arguments::copy_expand_pid(ErrorFile, strlen(ErrorFile), buffer, sizeof(buffer));
     1.6          if (copy_ok) {
     1.7 -          fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0600);
     1.8 +          fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
     1.9          }
    1.10        }
    1.11  
    1.12 @@ -928,7 +928,7 @@
    1.13          // so use the default name in the current directory
    1.14          jio_snprintf(&buffer[len], sizeof(buffer)-len, "%shs_err_pid%u.log",
    1.15                       os::file_separator(), os::current_process_id());
    1.16 -        fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0600);
    1.17 +        fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
    1.18        }
    1.19  
    1.20        if (fd == -1) {
    1.21 @@ -937,7 +937,7 @@
    1.22          if (tmpdir != NULL && tmpdir[0] != '\0') {
    1.23            jio_snprintf(buffer, sizeof(buffer), "%s%shs_err_pid%u.log",
    1.24                         tmpdir, os::file_separator(), os::current_process_id());
    1.25 -          fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0600);
    1.26 +          fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
    1.27          }
    1.28        }
    1.29  

mercurial