mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
[JENKINS-9118]
Tar/untar now correctly supports symlinks.
This commit is contained in:
1 parent
48daab0f0b
commit
d184d53b24
6 files changed
+118
-4
No files matched your search
@@ -1022,6 +1022,14 @@ public class Util {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated as of 1.456
|
||||
* Use {@link #resolveSymlink(File)}
|
||||
*/
|
||||
public static String resolveSymlink(File link, TaskListener listener) throws InterruptedException, IOException {
|
||||
return resolveSymlink(link);
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves symlink, if the given file is a symlink. Otherwise return null.
|
||||
* <p>
|
||||
@@ -1030,7 +1038,7 @@ public class Util {
|
||||
* @param listener
|
||||
* If we rely on an external command to resolve symlink, this is it.
|
||||
*/
|
||||
public static String resolveSymlink(File link, TaskListener listener) throws InterruptedException, IOException {
|
||||
public static String resolveSymlink(File link) throws InterruptedException, IOException {
|
||||
if(Functions.isWindows()) return null;
|
||||
|
||||
String filename = link.getAbsolutePath();
|
||||
|
||||
Reference in new issue
Block a user