ArchiveExtractor: allowing symlinks with absolute paths, still printing a warning

This commit is contained in:
Federico Fissore 2015-03-23 13:24:30 +01:00
parent 3fb3774627
commit a19cdf1492
1 changed files with 1 additions and 2 deletions

View File

@ -186,9 +186,8 @@ public class ArchiveExtractor {
// Symbolic links are referenced with relative paths
outputLinkedFile = new File(linkName);
if (outputLinkedFile.isAbsolute()) {
System.err.println(I18n.format(_("Warning: file {0} links to an absolute path {1}, changing it to {2}"), outputFile, outputLinkedFile, new File(outputLinkedFile.getName())));
System.err.println(I18n.format(_("Warning: file {0} links to an absolute path {1}"), outputFile, outputLinkedFile));
System.err.println();
outputLinkedFile = new File(outputLinkedFile.getName());
}
}