mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
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
This commit is contained in:
1 parent
21b7c3cd71
commit
35cc93f188
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user