Skip to content

Commit a19cdf1

Browse files
author
Federico Fissore
committed
ArchiveExtractor: allowing symlinks with absolute paths, still printing a warning
1 parent 3fb3774 commit a19cdf1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arduino-core/src/cc/arduino/utils/ArchiveExtractor.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,8 @@ public static void extract(File archiveFile, File destFolder, int stripPath) thr
186186
// Symbolic links are referenced with relative paths
187187
outputLinkedFile = new File(linkName);
188188
if (outputLinkedFile.isAbsolute()) {
189-
System.err.println(I18n.format(_("Warning: file {0} links to an absolute path {1}, changing it to {2}"), outputFile, outputLinkedFile, new File(outputLinkedFile.getName())));
189+
System.err.println(I18n.format(_("Warning: file {0} links to an absolute path {1}"), outputFile, outputLinkedFile));
190190
System.err.println();
191-
outputLinkedFile = new File(outputLinkedFile.getName());
192191
}
193192
}
194193

0 commit comments

Comments
 (0)