Merge pull request #1491 from alex2108/master

use Lstat instead of Stat to prevent errors with symlinks
This commit is contained in:
Jakob Borg 2015-03-20 09:34:10 +01:00
commit 8e5d2d5905

View File

@ -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