1
0
mirror of https://github.com/offen/docker-volume-backup.git synced 2025-11-23 21:44:40 +02:00

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)
}
}