mirror of https://github.com/noisymime/Arduino.git
ArchiveExtractor: allowing symlinks with absolute paths, still printing a warning
This commit is contained in:
parent
3fb3774627
commit
a19cdf1492
|
@ -186,9 +186,8 @@ public class ArchiveExtractor {
|
||||||
// Symbolic links are referenced with relative paths
|
// Symbolic links are referenced with relative paths
|
||||||
outputLinkedFile = new File(linkName);
|
outputLinkedFile = new File(linkName);
|
||||||
if (outputLinkedFile.isAbsolute()) {
|
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();
|
System.err.println();
|
||||||
outputLinkedFile = new File(outputLinkedFile.getName());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue