use Lstat instead of Stat to prevent errors with symlinks

This commit is contained in:
Alexander Graf 2015-03-19 17:36:15 +01:00
parent 5c026cbe1d
commit a2f7b78453

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