public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-p2p/freenet/files: strip-openjdk-check.patch 0.7.5_p1245-strip-openjdk-check.patch
@ 2010-07-17  1:16 Thomas Sachau (tommy)
  0 siblings, 0 replies; only message in thread
From: Thomas Sachau (tommy) @ 2010-07-17  1:16 UTC (permalink / raw
  To: gentoo-commits

tommy       10/07/17 01:16:40

  Added:                strip-openjdk-check.patch
  Removed:              0.7.5_p1245-strip-openjdk-check.patch
  Log:
  Version bump
  (Portage version: 2.2_rc67-r8/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-p2p/freenet/files/strip-openjdk-check.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/freenet/files/strip-openjdk-check.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/freenet/files/strip-openjdk-check.patch?rev=1.1&content-type=text/plain

Index: strip-openjdk-check.patch
===================================================================
--- src/freenet/node/Node.java	2010-07-17 02:53:39.633185065 +0200
+++ src/freenet/node/Node.java.new	2010-07-17 02:58:31.246061950 +0200
@@ -3726,43 +3726,6 @@
 
 		boolean isOpenJDK = false;
 
-		if(jvmName.startsWith("OpenJDK ")) {
-			isOpenJDK = true;
-			if(javaVersion.startsWith("1.6.0")) {
-				String subverString;
-				if(jvmVersion.startsWith("14.0-b"))
-					subverString = jvmVersion.substring("14.0-b".length());
-				else if(jvmVersion.startsWith("1.6.0_0-b"))
-					subverString = jvmVersion.substring("1.6.0_0-b".length());
-				else
-					subverString = null;
-				if(subverString != null) {
-					int subver;
-					try {
-						subver = Integer.parseInt(subverString);
-					} catch (NumberFormatException e) {
-						subver = -1;
-					}
-				if(subver > -1 && subver < 15) {
-					File javaDir = new File(System.getProperty("java.home"));
-
-					// Assume that if the java home dir has been updated since August 11th, we have the fix.
-
-					final Calendar _cal = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
-					_cal.set(2009, Calendar.AUGUST, 11, 0, 0, 0);
-					if(javaDir.exists() && javaDir.isDirectory() && javaDir.lastModified() > _cal.getTimeInMillis()) {
-						System.err.println("Your Java appears to have been updated, we probably do not have the XML bug (http://www.cert.fi/en/reports/2009/vulnerability2009085.html).");
-					} else {
-						System.err.println("Old version of OpenJDK detected. It is possible that your Java may be vulnerable to a remote code execution vulnerability. Please update your operating system ASAP. We will not disable plugins because we cannot be sure whether there is a problem.");
-						System.err.println("See here: http://www.cert.fi/en/reports/2009/vulnerability2009085.html");
-						clientCore.alerts.register(new SimpleUserAlert(false, l10n("openJDKMightBeVulnerableXML"), l10n("openJDKMightBeVulnerableXML"), l10n("openJDKMightBeVulnerableXML"), UserAlert.ERROR));
-					}
-
-				}
-				}
-			}
-		}
-
 		if(logMINOR) Logger.minor(this, "JVM vendor: "+jvmVendor+", JVM name: "+jvmName+", JVM version: "+javaVersion+", OS name: "+osName+", OS version: "+osVersion);
 
 		if((!isOpenJDK) && (jvmVendor.startsWith("Sun ") || (jvmVendor.startsWith("The FreeBSD Foundation") && jvmSpecVendor.startsWith("Sun ")) || (jvmVendor.startsWith("Apple ")))) {






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-17  1:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-17  1:16 [gentoo-commits] gentoo-x86 commit in net-p2p/freenet/files: strip-openjdk-check.patch 0.7.5_p1245-strip-openjdk-check.patch Thomas Sachau (tommy)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox