diff --git a/src/main/org/apache/tools/ant/util/FileUtils.java b/src/main/org/apache/tools/ant/util/FileUtils.java index 9b5ff4f9e..5e5b94611 100644 --- a/src/main/org/apache/tools/ant/util/FileUtils.java +++ b/src/main/org/apache/tools/ant/util/FileUtils.java @@ -723,8 +723,12 @@ public class FileUtils { *
  • DOS style paths that start with a drive letter will have * \ as the separator.
  • * - * Unlike {@link File#getCanonicalPath()} this method - * specifically does not resolve symbolic links. + *

    Unlike {@link File#getCanonicalPath()} this method + * specifically does not resolve symbolic links.

    + * + *

    If the path tries to go beyond the file system root (i.e. it + * contains more ".." segments than can be travelled up) the + * method will return the original path unchanged.

    * * @param path the path to be normalized. * @return the normalized version of the path.