fix fileinfo mode comparison when checking for symlinks

This commit is contained in:
Frederik Ring 2021-11-03 18:03:44 +01:00
parent 3193e88fc0
commit a0402b407d

View File

@ -526,7 +526,8 @@ func (s *script) pruneOldBackups() error {
err,
)
}
if fi.Mode() != os.ModeSymlink {
if fi.Mode()&os.ModeSymlink != os.ModeSymlink {
candidates = append(candidates, candidate)
}
}