Skip to content

Commit

Permalink
[FIXED JENKINS-25887] - Don not follow symlinks in FullBackup (#9)
Browse files Browse the repository at this point in the history
[JENKINS-25887] - Don not follow symlinks in FullBackup
  • Loading branch information
jikamens authored and oleg-nenashev committed Jun 21, 2017
1 parent 9d25188 commit 17c9607
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -83,6 +83,7 @@ public String getDisplayName() {
@Override
public Iterable<File> getFilesToBackup() {
DirectoryScanner directoryScanner = new DirectoryScanner(); // It will scan all files inside the root directory
directoryScanner.setFollowSymlinks(false);
directoryScanner.setBasedir(baseDir);
directoryScanner.setExcludes(Iterables.toArray(getExcludes(), String.class));
directoryScanner.scan();
Expand Down

0 comments on commit 17c9607

Please sign in to comment.