Skip to content

Commit

Permalink
ArchiveExtractor: allowing symlinks with absolute paths, still printi…
Browse files Browse the repository at this point in the history
…ng a warning
  • Loading branch information
Federico Fissore committed Mar 27, 2015
1 parent 3fb3774 commit a19cdf1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arduino-core/src/cc/arduino/utils/ArchiveExtractor.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,8 @@ public static void extract(File archiveFile, File destFolder, int stripPath) thr
// 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());
}
}

Expand Down

0 comments on commit a19cdf1

Please sign in to comment.