mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-10 00:30:29 +01:00
fix fileinfo mode comparison when checking for symlinks
This commit is contained in:
parent
3193e88fc0
commit
a0402b407d
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user