mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
Merge pull request #1491 from alex2108/master
use Lstat instead of Stat to prevent errors with symlinks
This commit is contained in:
commit
8e5d2d5905
@ -210,7 +210,7 @@ func (v Staggered) expire(versions []string) {
|
|||||||
var prevAge int64
|
var prevAge int64
|
||||||
firstFile := true
|
firstFile := true
|
||||||
for _, file := range versions {
|
for _, file := range versions {
|
||||||
fi, err := os.Stat(file)
|
fi, err := os.Lstat(file)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
l.Warnln("versioner:", err)
|
l.Warnln("versioner:", err)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user