From 35cc93f1887fad321eb368127de94d9db2ca6e4a Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sun, 17 Jun 2007 23:00:17 +0000 Subject: [PATCH] fixed #585 "Hudson follows symlinks when deleting" git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3475 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/Util.java b/core/src/main/java/hudson/Util.java index 28076edfdc..101f9544c6 100644 --- a/core/src/main/java/hudson/Util.java +++ b/core/src/main/java/hudson/Util.java @@ -167,7 +167,7 @@ public class Util { * Checks if the given file represents a symlink. */ //Taken from http://svn.apache.org/viewvc/maven/shared/trunk/file-management/src/main/java/org/apache/maven/shared/model/fileset/util/FileSetManager.java?view=markup - public boolean isSymlink(File file) throws IOException { + public static boolean isSymlink(File file) throws IOException { File parent = file.getParentFile(); File canonicalFile = file.getCanonicalFile();