From 5d5967c6a6330d998a7a74fd6fcbc4df8146a71e Mon Sep 17 00:00:00 2001 From: glewis Date: Wed, 6 Jun 2012 19:50:54 +0000 Subject: . Fix jstack. --- java/openjdk7/Makefile | 1 + .../files/patch-src-os-bsd-vm-attachListener_bsd.cpp | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 java/openjdk7/files/patch-src-os-bsd-vm-attachListener_bsd.cpp diff --git a/java/openjdk7/Makefile b/java/openjdk7/Makefile index eea9d41b003b..184acebfd5d6 100644 --- a/java/openjdk7/Makefile +++ b/java/openjdk7/Makefile @@ -7,6 +7,7 @@ PORTNAME= openjdk PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_BUILD_NUMBER} +PORTREVISION= 1 CATEGORIES= java devel MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}u${JDK_MINOR_VERSION}/promoted/b${JDK_BUILD_NUMBER}/ \ http://download.java.net/jaxp/1.4.5/:jaxp \ diff --git a/java/openjdk7/files/patch-src-os-bsd-vm-attachListener_bsd.cpp b/java/openjdk7/files/patch-src-os-bsd-vm-attachListener_bsd.cpp new file mode 100644 index 000000000000..9088cf568367 --- /dev/null +++ b/java/openjdk7/files/patch-src-os-bsd-vm-attachListener_bsd.cpp @@ -0,0 +1,16 @@ +$FreeBSD$ + +--- hotspot/src/os/bsd/vm/attachListener_bsd.cpp.orig 2012-06-05 23:51:31.000000000 -0700 ++++ hotspot/src/os/bsd/vm/attachListener_bsd.cpp 2012-06-05 23:54:28.000000000 -0700 +@@ -208,7 +208,10 @@ + if (res == 0) { + RESTARTABLE(::chmod(initial_path, S_IREAD|S_IWRITE), res); + if (res == 0) { +- res = ::rename(initial_path, path); ++ RESTARTABLE(::chown(initial_path, geteuid(), getegid()), res); ++ if (res == 0) { ++ res = ::rename(initial_path, path); ++ } + } + } + if (res == -1) { -- cgit