From ced5c443231d6c41f89f6c5fdb99b433725ff4db Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Mon, 15 Oct 2012 14:52:04 -0400 Subject: [PATCH] =?UTF-8?q?[FIXED=20JENKINS-15316]=20Harmless=20but=20nois?= =?UTF-8?q?y=20exception=20running=20builds=20on=20some=20Windows=20system?= =?UTF-8?q?s=20in=20non-English=20locale.=20Falling=20back=20to=20just=20c?= =?UTF-8?q?hecking=20for=20=E2=80=98FileSystemException=E2=80=99=20since?= =?UTF-8?q?=20detail=20message=20about=20missing=20required=20privilege=20?= =?UTF-8?q?may=20be=20translated.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.html | 4 +++- core/src/main/java/hudson/Util.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/changelog.html b/changelog.html index daa40f2042..eca97fe007 100644 --- a/changelog.html +++ b/changelog.html @@ -55,7 +55,9 @@ Upcoming changes diff --git a/core/src/main/java/hudson/Util.java b/core/src/main/java/hudson/Util.java index c39faa720b..a93ef736d0 100644 --- a/core/src/main/java/hudson/Util.java +++ b/core/src/main/java/hudson/Util.java @@ -1071,7 +1071,7 @@ public class Util { if (x2 instanceof UnsupportedOperationException) { return true; // no symlinks on this platform } - if (Functions.isWindows() && String.valueOf(x2).contains("A required privilege is not held by the client.")) { + if (Functions.isWindows() && String.valueOf(x2).contains("java.nio.file.FileSystemException")) { if (warnedSymlinks.compareAndSet(false, true)) { LOGGER.warning("Symbolic links enabled on this platform but disabled for this user; run as administrator or use Local Security Policy > Security Settings > Local Policies > User Rights Assignment > Create symbolic links"); }