diff options
Diffstat (limited to 'java/jdk15')
-rw-r--r-- | java/jdk15/Makefile | 1 | ||||
-rw-r--r-- | java/jdk15/files/patch-native::util.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile index a89138f56b27..6c90be937a12 100644 --- a/java/jdk15/Makefile +++ b/java/jdk15/Makefile @@ -7,6 +7,7 @@ PORTNAME= jdk PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION} +PORTREVISION= 1 CATEGORIES= java devel MASTER_SITES= # http://www.sun.com/software/java2/download.html # http://www.eyesbeyond.com/freebsddom/java/jdk14.html diff --git a/java/jdk15/files/patch-native::util.c b/java/jdk15/files/patch-native::util.c new file mode 100644 index 000000000000..719d1ae0e989 --- /dev/null +++ b/java/jdk15/files/patch-native::util.c @@ -0,0 +1,16 @@ +$FreeBSD$ + +--- ../../deploy/src/javaws/src/share/native/util.c 22 Oct 2003 23:04:17 -0000 1.1.1.1 ++++ ../../deploy/src/javaws/src/share/native/util.c 16 Jan 2004 23:50:11 -0000 +@@ -27,7 +27,10 @@ + + /* Find size of file */ + struct stat statBuf; +- stat(filename, &statBuf); ++ if (stat(filename, &statBuf) == -1) { ++ *buffer = NULL; ++ return 0; ++ } + size = statBuf.st_size; + + /* Allocate memory for contents */ |