Skip to content
Permalink
Browse files

[FIXED JENKINS-25887] - Don not follow symlinks in FullBackup (#9)

[JENKINS-25887] - Don not follow symlinks in FullBackup
  • Loading branch information
jikamens authored and oleg-nenashev committed Jun 21, 2017
1 parent 9d25188 commit 17c9607582007ca546bd7fc011fb8afd322fe1b5
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main/java/org/jenkinsci/plugins/periodicbackup/FullBackup.java
@@ -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();

0 comments on commit 17c9607

Please sign in to comment.
You can’t perform that action at this time.