mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
use Lstat instead of Stat to prevent errors with symlinks
This commit is contained in:
parent
5c026cbe1d
commit
a2f7b78453
@ -210,7 +210,7 @@ func (v Staggered) expire(versions []string) {
|
||||
var prevAge int64
|
||||
firstFile := true
|
||||
for _, file := range versions {
|
||||
fi, err := os.Stat(file)
|
||||
fi, err := os.Lstat(file)
|
||||
if err != nil {
|
||||
l.Warnln("versioner:", err)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user